Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
<!doctype html> | |
<html> | |
<head> | |
<title>This is the title of the webpage!</title> | |
</head> | |
<body> | |
<p> | |
This is an example paragraph.<br /> | |
Anything in the <strong>body</strong> tag will appear on the page.<br /> | |
Just like this <strong>p</strong> tag and its contents. |
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
Type this into Github Gist Search (https://gist.github.com/)
user:BoQsc your search query
///Returns the input value clamped to the lower and upper limits. | |
func clamp<T: Comparable>(value: T, lower: T, upper: T) -> T { | |
return min(max(value, lower), upper) | |
} | |
//----------------------------------------------- | |
// Example usage | |
let proposedIndex = 6 |
from: http://www.meandmark.com/keycodes.html | |
Virtual Keycodes for the Mac QWERTY Layout | |
Keycodes are in hexadecimal. A blank entry means either there is no key assigned to that keycode or I was unable to find the assigned key. | |
Keycode Key | |
0x00 A | |
0x01 S | |
0x02 D | |
0x03 F |
public boolean isColorDark(int color){ | |
double darkness = 1-(0.299*Color.red(color) + 0.587*Color.green(color) + 0.114*Color.blue(color))/255; | |
if(darkness<0.5){ | |
return false; // It's a light color | |
}else{ | |
return true; // It's a dark color | |
} | |
} |
selector { | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; | |
filter: alpha(opacity=30); | |
-moz-opacity: 0.3; | |
-khtml-opacity: 0.3; | |
opacity: 0.3; | |
} |
@mixin pixelated { | |
-ms-interpolation-mode: nearest-neighbor; // IE 7+ (non-standard property) | |
image-rendering: -webkit-optimize-contrast; // Safari 6, UC Browser 9.9 | |
image-rendering: -webkit-crisp-edges; // Safari 7+ | |
image-rendering: -moz-crisp-edges; // Firefox 3.6+ | |
image-rendering: -o-crisp-edges; // Opera 12 | |
image-rendering: pixelated; // Chrome 41+ and Opera 26+ | |
} |
var p1 = { | |
x: 20, | |
y: 20 | |
}; | |
var p2 = { | |
x: 40, | |
y: 40 | |
}; |