This file contains hidden or 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
{ | |
"search": { | |
"criteria": { | |
"scope": { | |
"simple": true, | |
"avatar": true, | |
"totalCount": true | |
}, | |
"sortBy": "roleID", | |
"sortOrder": "desc", |
This file contains hidden or 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
{ | |
"editor.tabSize": 2, | |
"editor.renderWhitespace": "boundary", | |
"editor.cursorStyle": "block", | |
"editor.fontFamily": "'Office Code Pro D', Inconsolota, Menlo, Monaco, monospace", | |
"editor.fontSize": 13, | |
"editor.formatOnSave": true, | |
"[javascript]": { | |
"editor.formatOnSave": false, | |
}, |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Math.floor(Math.random() * 16777215).toString(16)</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var r = Math.random; | |
var c = document.createElement('canvas'); |
This file contains hidden or 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
#!/bin/bash | |
set -e | |
# Note: | |
# run this script from the project folder | |
# `sh /path/delete-branches.sh` | |
# Some Colors | |
red=`tput setaf 1` |
This file contains hidden or 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
/* lazyload.js (c) Lorenzo Giuliani | |
* MIT License (http://www.opensource.org/licenses/mit-license.html) | |
* | |
* expects a list of: | |
* `<img src="blank.gif" data-src="my_image.png" width="600" height="400" class="lazy">` | |
*/ | |
!function(window){ | |
var $q = function(q, res){ | |
if (document.querySelectorAll) { |
This file contains hidden or 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
/* | |
** readingTime | |
** =========== | |
** Given a string, it returns the time a human needs to read it | |
** @param {String} text - the string to analyze | |
** @param {Number} wpm - words per minute | |
*/ | |
function readingTime( text, wpm ) { | |
This file contains hidden or 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
/* | |
* Ruby's String#center, String#rjust, String#ljust | |
* | |
* https://jsfiddle.net/6v0bpffm/ | |
*/ | |
function ljust( string, width, padding ) { | |
padding = padding || " "; | |
padding = padding.substr( 0, 1 ); | |
if ( string.length < width ) |
This file contains hidden or 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
@background: rgb(31, 37, 50); | |
.envelope-icon { | |
position: relative; | |
display: inline-block; | |
width: 20px; | |
height: 16px; | |
margin-right: 10px; | |
margin-left: 25px; | |
vertical-align: top; |