Skip to content

Instantly share code, notes, and snippets.

@stongo
stongo / app.js
Last active September 7, 2024 14:28
Joi validation in a Mongoose model
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
var db = mongoose.connection;
db.on('error', function() {
return console.error.bind(console, 'connection error: ');
});
@ebidel
ebidel / Web Components Resources.md
Last active October 12, 2024 17:10
List of resources related to Web Components
@kneath
kneath / growth.md
Last active November 12, 2018 06:33
Growth position

Hack on github.com with me

Thanks everyone! I've got enough leads for the time being.

@howar31
howar31 / Markdown_Cheatsheet.md
Last active July 24, 2023 07:43
Markdown Cheatsheet
@jonschlinkert
jonschlinkert / markdown-cheatsheet.md
Last active April 23, 2025 17:58
A better markdown cheatsheet.
@kordless
kordless / gauges.js
Created October 9, 2012 16:29
guag.es tracker code
var _gauges = _gauges || [];
(function () {
var h = (_gauges['slice']) ? _gauges.slice(0) : [];
_gauges = {
track_referrer: true,
image: new Image(),
track: function () {
this.setCookie('_gauges_cookie', 1, 1);
var a = this.url();
if (a) {
@wookiehangover
wookiehangover / gist:3266276
Created August 5, 2012 17:51
Uploads Formidable file objects to S3, save to redis
// Uploads Formidable file objects to S3, save to redis
//
// TODO - add image processing task
var fs = require('fs');
var s3 = require('knox').createClient();
var redis = require('redis');
var client = redis.createClient();
function update( data, cb ){
@jaywilliams
jaywilliams / Twilight Terminal Theme.mdown
Created August 1, 2012 16:41
Twilight Theme Terminal Colors

Twilight Theme Terminal Colors

Based on the timeless TextMate theme.

Basic Colors

Foreground:     #FEFFD3

Background: #141414

@kconragan
kconragan / keyrepeat.shell
Last active January 15, 2025 23:02
Enable key repeat in Apple Lion for Sublime Text in Vim mode
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
#
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.