-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblogspot-blog-css.html
151 lines (129 loc) · 4.04 KB
/
blogspot-blog-css.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Sample code syntax highlighting</title>
<style type="text/css">
.code-snippet { /* DO-NO-USE this */
background-color: #f0f0f0;
border: 1px solid #cccccc;
padding: 10px;
max-width: 100%;
overflow: auto;
font-size: 12px;
color: #000000;
font-family: Monaco, Courier, monospace;
}
.code-highlight {
background-color: #f0f0f0;
font-size: 14px;
color: rgb(215, 58, 73);
font-family: Monaco, Courier, monospace;
font-weight: normal;
padding-left: 5px;
padding-right: 5px;
}
/* For PrismJS customization */
pre[class*="language-"] {
font-size: 14px !important;
background: #f9f9fa !important;
border: 1px solid rgba(51, 51, 51, 0.1);
}
div.filename{
border: 1px solid rgba(51, 51, 51, 0.1);
border-bottom: none;
margin-bottom: -0.5em;
margin-top: 0.5em;
padding: 0.2em;
padding-left: 1em;
background-color: #E1F1FB;
font-weight: bold;
color: black;
}
/*
pre.code {
background-color: #f0f0f0;
border: 1px dashed #999999;
padding: 10px;
margin-bottom: 10px;
width: 100%;
overflow: auto;
font-size: 12px;
line-height: 15px;
color: #000000;
font-family: Monaco, Courier, monospace;
}
pre.code code {
word-wrap: normal;
}
span.code {
background-color: #f0f0f0;
font-size: 15px;
color: rgb(215, 58, 73);
font-family: Monaco, Courier, monospace;
font-weight: normal;
padding-left: 5px;
padding-right: 5px;
}
*/
</style>
<!-- PrismJS syntax highlighting -->
<link rel='stylesheet' href='https://dl.dropbox.com/s/fg2ndvbmz7jptyj/prism-default.css' type='text/css' media='all' />
<script type='text/javascript' src='https://dl.dropbox.com/s/ldfh2g35sfbh72t/prism-default.js'></script>
</head>
<body>
<h1>Prims JS</h1>
<p>Only important line which is doing real work is <code class="language-java">return input * 2</code>. Rest every thing is overhead ceremonial code.</p>
<div class="filename">MainApp.java</div>
<pre class="language-java line-numbers"><code>package com.readtorakesh.java8.lambda_expression_basics;
public class MainApp {
public static void main(String[] args) {
new MainApp().doMain();
}
private void doMain() {
System.out.println("# Lambda - Double the value: 10");
System.out.println(processValue(10, n -> n * 2));
System.out.println("\n");
System.out.println("# Anonymous Inner Class - Double the value: 10");
System.out.println(processValue(10, new Processor() {
@Override
public int process(int input) {
return input * 2;
}
}));
}
private int processValue(int value, Processor processor) {
return processor.process(value);
}
}
</code></pre>
<pre class="language-java line-numbers" ><code>String[] quote = {"Java8", "is", "awesome"};
StringBuffer combined = new StringBuffer();
for(int i=0;i<quote.length;i++) {
combined.append(quote[i]);
if(i < quote.length - 1) {
combined.append("|");
}
}
System.out.println("Output: " + combined.toString());
--- Output ---
Output: Java8|is|awesome</code></pre>
<h1>Manual CSS code-snippet, code-highlight</h1>
<p>This is sample text</p>
<pre class="code-snippet"><code>Cache Initialized
Entries in the Cache at: Tue Jan 09 22:10:01 EST 2018
--------------------
Key: 1, Value: null
Key: 2, Value: null
Key: 3, Value: Person [personId=3, firstName=firstName-1, lastName=lastName-3]
Key: 4, Value: Person [personId=4, firstName=firstName-1, lastName=lastName-4]
Key: 5, Value: Person [personId=5, firstName=firstName-1, lastName=lastName-5]
Key: 6, Value: Person [personId=6, firstName=firstName-1, lastName=lastName-6]
Key: 7, Value: Person [personId=7, firstName=firstName-1, lastName=lastName-7]
Waiting for 40 seconds
AverageRemoveTime=0.0</code>
</pre>
<p>This is second line of text</p>
<p>Only important line which is doing real work is <code class="code-highlight">return input * 2</code>. Rest every thing is overhead ceremonial code.</p>
</body>
</html>