Skip to content

Instantly share code, notes, and snippets.

:octocat:
afk // brb

Michael Kühnel mischah

:octocat:
afk // brb
View GitHub Profile
View feelbetter.js
var Twit = require("twit");
var config = require('./oauthconfig');
console.log("config:");
console.log(config);
var T = new Twit({
consumer_key: config.consumer_key,
consumer_secret: config.consumer_secret,
access_token: config.access_token,
View codestyle.md

Code Style

  • Tab indentation
  • Single-quotes
  • Semicolon
  • Strict mode
  • No trailing whitespace
  • Variables at the top of the scope
  • Multiple variable statements
  • Space after keywords and between arguments and operators
@mischah
mischah / dabblet.css
Created Nov 13, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
View Black-UpperLeft.html
<a href="http://github.com/you"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/bec6c51521dcc8148146135149fe06a9cc737577/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a>
@mischah
mischah / gist:1289555
Created Oct 15, 2011
Recursively delete .svn directories
View gist:1289555
cd FOLDER
rm -rf 'find . -type d -name .svn'
@mischah
mischah / .gitconfig
Created Apr 19, 2011
My minimal ~/.gitconfig
View .gitconfig
[user]
name = Firstname Lastname
email = mail@domain.com
[color]
diff = auto
status = auto
branch = auto
[apply]
whitespace = nowarn
View Preferences.sublime-settings
{
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
@mischah
mischah / dabblet.css
Created Jan 30, 2015
Simple folded corners
View dabblet.css
/**
* Simple folded corners
*/
div {
background: yellowgreen; /* fallback */
padding: 1em;
width: 12em;
@mischah
mischah / README.md
Created Jul 18, 2014
The power of moment.js
View README.md

#The power of Moment.js

Use case:

  • start date: current day + 2 days
  • end date: current day + 7 days
  • default date: current day + 2 days
  • disabled dates: Sundays within the range of start date to end date

http://momentjs.com

@mischah
mischah / Gruntfile.js
Last active Aug 29, 2015
DalekJS Remote test execution
View Gruntfile.js
// JSHint settings
/* jshint camelcase: false, es3: false */
'use strict';
module.exports = function(grunt) {
// Get devDependencies
require('load-grunt-tasks')(grunt, {scope: 'devDependencies'});
You can’t perform that action at this time.