Skip to content

Instantly share code, notes, and snippets.

look:
- one
- two
" find all files and move up dir and rename
find */*.md | while read file; do mv $file ${file/\/index/""}; done;
" remove first 7 characters from all svgs
for x in *.svg; do mv $x `echo $x | cut -c 7-` ; done
for filename in ./*.less; do less2sass "${filename}" "_${filename/.less/.scss}"; done
@dunckr
dunckr / index.html
Created March 28, 2015 14:11
meta og
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>*</title>
<meta name="description" content="" />
<meta property="og:title" content="" />
@dunckr
dunckr / js
Last active August 29, 2015 14:17
CocoaScript translation
NSRect frame = [[NSScreen mainScreen] frame]
equivalent to:
var frame = NSScreen.mainScreen().frame()
[[NSPanel alloc] initWithContentRect:frame styleMask:mask backing:NSBackingStoreBuffered defer:true];
@dunckr
dunckr / networks
Last active August 29, 2015 14:16
Ad Networks
BuySellAds.com
BuyAds.com
POF Ads
Clicksor
7Search Display
Criteo
AdEngage
Yabuka
Burst Media
Advertising.com
@dunckr
dunckr / dump.sketchplugin
Created February 25, 2015 19:02
Sketch object dump
// Dump Object
function dump_obj(obj){
log("#####################################################################################")
log("## Dumping object " + obj )
log("## obj class is: " + [obj className])
log("#####################################################################################")
log("obj.properties:")
log("#####################################################################################")
log([obj class].mocha().properties())
log("obj.propertiesWithAncestors:")
@dunckr
dunckr / _bootstrap.scss
Created February 20, 2015 16:55
bootstrap-sass from npm install
// Core variables and mixins
@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables";
@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins";
// Reset and dependencies
@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/normalize";
@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/print";
@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/glyphicons";
// Core CSS
@dunckr
dunckr / gist:564cfcbfbe02c3cd941d
Created October 10, 2014 17:36
sketch class dump
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#pragma mark Function Pointers and Blocks
typedef void (*CDUnknownFunctionPointerType)(void); // return type and parameters are unknown
@dunckr
dunckr / gruntfile.js
Last active August 29, 2015 14:06
assemble json
module.exports = function(grunt) {
grunt.initConfig({
assemble: {
options: {
flatten: true,
layoutdir: 'templates/layouts',
partials: 'templates/partials/*.hbs',
helpers: 'templates/helpers/*.js',
},