This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# To have this work on windows (without extension) nicely its easiest | |
# just to create a bat file which calls `@echo off & bash -c "gf.sh %*"` | |
REPOS=*/ | |
if [[ -r .gf ]]; then | |
REPOS=(`cat .gf`) | |
fi | |
for REPO in $REPOS; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/inferno/1.0.7/inferno.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/inferno/1.0.7/inferno-component.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/inferno/1.0.7/inferno-create-element.js"></script> | |
</head> | |
<body> | |
<div id="app" /> | |
<script> | |
// Review Inferno.createElement dep. perhaps Inferno.createVNode would suffice. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// node = {} | |
// children are a key; | |
class DOMBuilder { | |
constructor(document, options = {uri: 'http://www.w3.org/1999/xhtml', tag: 'div'}) { | |
this.document = document; | |
this.options = options; | |
} | |
buildNode(node) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function plexy(src) { | |
const TOKEN = { | |
STRING: 0, | |
NUMBER: 1, | |
LABEL: 2, | |
SYMBOL: 3, | |
'...': 4, | |
'..': 5, | |
'.': 6, | |
'==': 7, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dagger.Component | |
import dagger.Module | |
import dagger.Provides | |
import javax.inject.Inject | |
import javax.inject.Singleton | |
interface Heater { | |
fun on() | |
fun off() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define SDL_MAIN_HANDLED // resolve main symbol not sdl_main | |
#include <stdio.h> | |
#include <SDL2/SDL.h> | |
int main(int argc, char **argv) { | |
if (SDL_Init(SDL_INIT_VIDEO)) { | |
printf("SDL_Init Error: %s \n", SDL_GetError()); | |
return 1; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Modules | |
(require 'prelude-clojure) ;; prelude-modules | |
(prelude-require-package 'magit) ;; git support | |
;; Update UI/Editor state | |
;; Change default font to consolas falling back to dejavue | |
(require 'cl) | |
(defun font-candidate (&rest fonts) | |
"Return existing font which first match." | |
(find-if (lambda (f) (find-font (font-spec :name f))) fonts)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var _ = require('underscore'); | |
var http = require('http'); | |
var https = require('https'); | |
var url = require('url'); | |
var querystring = require('querystring'); | |
/** | |
* A http client library implementation encapsulating nodes http.request object. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A very basic kotlin seed that uses spring boot (and the jpa/rest starters) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ppi = 96 * window.devicePixelRatio || 1; // 96 = CSS DPI/PPI reference measurement | |
var absoluteMeasurements = { | |
px : 1, | |
pt : 4 / 3, | |
pc : 12 * (4 / 3), | |
in : ppi, | |
cm : ppi / 2.54, | |
mm : ppi / 25.4, | |
deg: 1, | |
grad: 400 / 360, |
NewerOlder