Skip to content

Instantly share code, notes, and snippets.

View simonkberg's full-sized avatar
:shipit:

Simon Kjellberg simonkberg

:shipit:
View GitHub Profile
@gudbergur
gudbergur / README.markdown
Created February 19, 2012 23:49
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string
@thorst
thorst / README.markdown
Created June 20, 2012 16:49 — forked from gudbergur/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things
@chrisjaure
chrisjaure / deploy.js
Created July 29, 2012 17:16
Deploying nodejs apps with haibu and git
#! /path/to/node
var haibu = require('/path/to/haibu');
var client = new haibu.drone.Client();
process.stdin.resume();
process.stdin.on('data', function(data){
var package = JSON.parse(data.toString());
@steveu
steveu / loops.scss
Created September 17, 2012 13:31
Sass/SCSS Loops
/*
Given the following html
<nav>
<ul>
<li class="home"><a>Home</a></li>
<li class="about"><a>About</a></li>
<li class="blog"><a>Blog</a></li>
<li class="contact"><a>Contact</a></li>
</ul>
</nav>
@michaeljohnson
michaeljohnson / bootstrap-carousel.slide.ext.js
Last active January 17, 2022 05:09
Extend Carousel from Twitter Bootstrap (bootstrap-carousel.js) with js fallback for browsers without css3 transition support. See @barryvdh https://github.com/Barryvdh/bootstrap/commit/8b294f0c0184eb7111ef6da6046d4d1f33ea7ba3
@chrismeller
chrismeller / ping.conf
Created February 9, 2013 20:02
My PHP-FPM pool.d config files.
[www]
ping.path = /ping
@jbenet
jbenet / simple-git-branching-model.md
Last active November 9, 2024 04:55
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@kristian-lifelike
kristian-lifelike / copydoc_JSON_Export.js
Last active September 21, 2017 10:46
Copy doc JSON exporter for Google Drive spreadsheets.
/*
Copy doc JSON exporter for Google Drive spreadsheets.
Instructions:
1. Open the copy doc spreadsheet
2. Make sure the first row contains a column with the value “id” and that there’s at least one column with a locale value
2. Go to Tools/Script Editor…
3. (Optional) create a new script file and name it something funny
4. Paste the code from this file
#!/usr/bin/python
# Connects to servers vulnerable to CVE-2014-0160 and looks for cookies, specifically user sessions.
# Michael Davis ([email protected])
# Based almost entirely on the quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import select
@mplewis
mplewis / safe_schedule.py
Last active September 19, 2024 22:42
An implementation of Scheduler that catches jobs that fail. For use with https://github.com/dbader/schedule
import logging
from traceback import format_exc
import datetime
from schedule import Scheduler
logger = logging.getLogger('schedule')