Skip to content

Instantly share code, notes, and snippets.

@jsas
jsas / bootstrap.css
Last active May 11, 2022 17:47
Wiper Control
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
@jsas
jsas / cornpone
Last active August 29, 2015 14:05
p+e+r+c+e+n+t+s = 100
var Lazy = require('lazy'),
fs = require('fs');
function wordToNumber(word){
var total=0;
word.split('').forEach(function(letter){
total += letter.charCodeAt(0)-96
});
return total;
}
@jsas
jsas / gist:6299412
Created August 21, 2013 19:59
Application database connection state detection and management in single and replica set environments.
// initiate the connection
app._connectDatabase();
MyAppServer.prototype._reconnectDb = function() {
if (!this.stopping) {
if (this.dbConnected) {
this._recon.firstTry = null;