This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"maxerr" : 50, // {int} Maximum error before stopping | |
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase" : true, // true: Identifiers must be in camelCase | |
"curly" : false, // true: Require {} for every new block or scope | |
"eqeqeq" : true, // true: Require triple equals (===) for comparison | |
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty() | |
"freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc. | |
"immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Hi There! | |
# You may be wondering what this giant blob of binary data here is, you might | |
# even be worried that we're up to something nefarious (good for you for being | |
# paranoid!). This is a base64 encoding of a zip file, this zip file contains | |
# an entire copy of pip. | |
# | |
# Pip is a thing that installs packages, pip itself is a package that someone | |
# might want to install, especially if they're looking to run this get-pip.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
if ( !window.jQuery ) { | |
var $inUse = !!window.$, | |
script = document.createElement('script'); | |
script.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js'); | |
script.addEventListener('load', function(){ | |
console.log('jQuery was loaded.'); | |
if ($inUse) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pre { | |
border: 1px solid #999; | |
page-break-inside: avoid; | |
display: block; | |
padding: 3px 3px 2px; | |
margin: 0 0 10px; | |
font-size: 13px; | |
line-height: 20px; | |
word-break: break-all; | |
word-wrap: break-word; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*iPhone < 5:*/ | |
@media screen and (device-aspect-ratio: 2/3) {} | |
/*iPhone 5:*/ | |
@media screen and (device-aspect-ratio: 40/71) {} | |
/*iPhone 6:*/ | |
@media screen and (device-aspect-ratio: 667/375) {} | |
/*iPhone 6 Plus:*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string EncodeTo64(string toEncode) | |
{ | |
byte[] toEncodeAsBytes = System.Text.ASCIIEncoding.ASCII.GetBytes(toEncode); | |
string returnValue = System.Convert.ToBase64String(toEncodeAsBytes); | |
return returnValue; | |
} | |
public static string DecodeFrom64(string encodedData) | |
{ | |
byte[] encodedDataAsBytes = System.Convert.FromBase64String(encodedData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ajax(type, url) { | |
var request = new XMLHttpRequest(); | |
request.open(type, url, true); | |
request.onload = function() { | |
if (this.status >= 200 && this.status < 400) { | |
//succes. | |
var resp = this.response; | |
} | |
else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var extend = function(out) { | |
out = out || {}; | |
for (var i = 1; i < arguments.length; i++) { | |
if (!arguments[i]) | |
continue; | |
for (var key in arguments[i]) { | |
if (arguments[i].hasOwnProperty(key)) | |
out[key] = arguments[i][key]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="shortcut icon" sizes="16x16 24x24 32x32 48x48 64x64" href="favicon.ico"> | |
<!-- Mobile (Android, iOS & others) --> | |
<link rel="apple-touch-icon" sizes="57x57" href="favicon-57.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="favicon-57.png"> | |
<link rel="apple-touch-icon" sizes="72x72" href="favicon-72.png"> | |
<link rel="apple-touch-icon" sizes="114x114" href="favicon-114.png"> | |
<link rel="apple-touch-icon" sizes="120x120" href="favicon-120.png"> | |
<link rel="apple-touch-icon" sizes="144x144" href="favicon-144.png"> | |
<link rel="apple-touch-icon" sizes="152x152" href="favicon-152.png"> |