Skip to content

Instantly share code, notes, and snippets.

View davidglivar's full-sized avatar
💭
WFH

David Glivar davidglivar

💭
WFH
View GitHub Profile
@davidglivar
davidglivar / gist:1157380
Created August 19, 2011 17:13
jquery's plugin authoring script converted to coffeescript
(($) ->
# plugin desc
$.fn.plugin_name = (options) ->
if !this.length
return this;
this.each(
->
@davidglivar
davidglivar / Default (OSX).sublime-keymap
Created April 27, 2013 20:58
my user defined keymaps for sublime text 3
[
{ // escape
"keys": ["ctrl+c"],
"command": "exit_insert_mode",
"context": [
{
"key": "setting.command_mode",
"operand": false
},
{
@davidglivar
davidglivar / dart.html
Created October 31, 2014 01:44
basic dart index
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<script type="application/dart" src="main.dart"></script>
<script src="packages/browser/dart.js"></script>
@davidglivar
davidglivar / gist:9247b60e841a90b71d1e
Last active August 29, 2015 14:21
display available font faces in ios
for family in UIFont.familyNames() {
println(family)
for name in UIFont.fontNamesForFamilyName(family as! String) {
println(" \(name)")
}
}
//
// UIView+CustomTimingFunction.h
// Instants
//
// Created by Christian Giordano on 16/10/2013.
// Copyright (c) 2013 Christian Giordano. All rights reserved.
//
#import <UIKit/UIKit.h>
const { exec } = require('child_process');
const createContainer = () => (
new Promise((resolve, reject) => {
exec('docker create --name test --label test busybox', (err, stdout) => {
if (err) return reject(err);
resolve(stdout);
});
})
);