Skip to content

Instantly share code, notes, and snippets.

View iamkevinv's full-sized avatar

Kevin Vanderbeken iamkevinv

View GitHub Profile
@iamkevinv
iamkevinv / setup.sh
Last active August 29, 2015 14:22 — forked from marklawlor/setup.sh
Setup things for a new mac
#!/bin/bash
#
# Helper functions
#
function pause(){
read -p "$*"
}
@benvinegar
benvinegar / subdomain.js
Created March 8, 2011 06:31
Subdomain tunneling with jQuery and document.domain
/**
* Replace $.ajax on your subdomain with a copy taken
* from your base domain. All jQuery AJAX actions go
* through $.ajax (i.e. $.get, $.post), so it's all good.
*/
(function() {
var iframe,
onload,
queue = [],
@marklawlor
marklawlor / setup.sh
Last active September 21, 2016 14:39
WIP Helper script to setup Mac OSX from a clean install
#!/bin/bash
#
# Helper functions
#
function pause(){
read -p "$*"
}
@sstephenson
sstephenson / super.bash
Last active January 30, 2017 01:40
`super` in Bash
#!/usr/bin/env bash
source super.bash
foo() {
echo hello
}
super_function foo
foo() {
@dalcib
dalcib / ng-schema.js
Created July 25, 2012 03:38
AngularJS directive to convert JSON-Scheme in a form
/* https://github.com/nikos/cmskern/blob/master/playapp/public/javascripts/widgets.js*/
/**
* Widget for displaying a complete form as specified by the given schema.
*/
angular.widget('my:form', function(element) {
this.descend(true); // compiler will process children elements
this.directives(true); // compiler will process directives

architectures and whatnot

  1. plain ol' React
let state = initial
render(view(state), element)
  • view is pure!
@Sam-Martin
Sam-Martin / RightGIF Integration for HipChat using AWS Lambda.py
Created April 26, 2016 20:28
RightGIF Integration for HipChat using AWS Lambda
import urllib
import urllib2
import json
def lambda_handler(event, context):
url = 'https://rightgif.com/search/web'
@cowboy
cowboy / 1.before.js
Created June 25, 2012 17:46
grunt: an example of building task targets dynamically
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
min: {
ariaAccessibility: {
src: ['src/javascripts/jquery.selectBoxIt.ariaAccessibility.js'],
dest: 'src/javascripts/jquery.selectBoxIt.ariaAccessibility.min.js'
},
version: '2.0'
services:
couchpotato:
image: linuxserver/couchpotato
ports:
- 5050:5050
volumes:
- couchpotato:/config:rw
- movies:/movies:rw
- downloads:/downloads:rw
@iamkevinv
iamkevinv / .block
Last active August 5, 2019 04:43 — forked from mbostock/.block
Zoom to Bounding Box II - Updated for d3 v4
license: gpl-3.0