Skip to content

Instantly share code, notes, and snippets.

View jspdown's full-sized avatar
🤘
‘ , . ‘ ˑ , ‘ .

Harold Ozouf jspdown

🤘
‘ , . ‘ ˑ , ‘ .
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jspdown on github.
  • I am jspdown (https://keybase.io/jspdown) on keybase.
  • I have a public key whose fingerprint is 5138 7D01 EC28 E68D 1FE6 1AA3 7899 F4CA 94D1 FA44

To claim this, I am signing this object:

0x0198536F4968aaFb2530930a8A5dfb7d29E57403
@jspdown
jspdown / colora.sh
Created January 28, 2017 10:21
Color-summarizer
#! /bin/bash
URL=$1
PRECISION=vhigh
function usage {
echo 'Usage: colora <http://site/image.jpg>';
exit 1
}
import javafx.beans.InvalidationListener;
import javafx.beans.binding.*;
import javafx.beans.property.FloatProperty;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleFloatProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.value.ChangeListener;
public class Example02 {
// CONTACT.JAVA
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class Contact {
private StringProperty name = new SimpleStringProperty();
private StringProperty contactNumber = new SimpleStringProperty();
@jspdown
jspdown / gist:f18d8910a99a9065a29c
Created May 9, 2015 15:26
ng-repeat keep order
<div ng-controller="example">
<div ng-repeat="key in notSorted(data)" ng-init="value = data[key]">
<pre>
key: {{key}}
value: {{value}}
</pre>
</div>
</div>
<script>
@jspdown
jspdown / $memoize
Last active May 11, 2016 21:15
Simple "in-function" memoize for AngularJs
;(function (angular) {
'use strict';
angular
.module('ng-utils', [])
.factory('$memoize', memoize);
function memoize() {
return function (target) {
return function () {
@jspdown
jspdown / injector(DI)
Created February 4, 2014 14:55
simple dependency injection
class DInjector {
inject:any;
modules:any;
constructor() {
this.inject = {};
this.modules = {};
}
public register(name:string, dependency:string[], fn:any) {