This file contains 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 elixir | |
defmodule Canvas do | |
@behaviour :wx_object | |
@title "Canvas Example" | |
@size {600, 600} | |
def start_link() do | |
:wx_object.start_link(__MODULE__, [], []) |
This file contains 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
{ | |
"name": "valtech-shortie", | |
"version": "1.0.0", | |
"dependencies": { | |
"browserify": { | |
"version": "3.46.1", | |
"from": "browserify@^3.31.2", | |
"resolved": "https://registry.npmjs.org/browserify/-/browserify-3.46.1.tgz", | |
"dependencies": { | |
"JSONStream": { |
This file contains 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
// add your variants of | |
a ? b : c | |
// in comments :) | |
// a is boolean | |
// b and c - any type | |
// lazy evaluation isnt important |
This file contains 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
filetype plugin indent on | |
color Kellys | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set expandtab | |
set noautochdir |
This file contains 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
public class DoubleTapZoomMapView extends MapView { | |
private static final long TIME_INITIAL = -1; | |
private static final long TIME_DOUBLE_TAP = 250; | |
private long lastTouchTime = TIME_INITIAL; | |
public DoubleTapZoomMapView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} |
This file contains 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
Ext.override(Ext.data.Model, { | |
/** | |
* Validates the current data against all of its configured {@link #validations} and returns an | |
* {@link Ext.data.Errors Errors} object | |
* @param {Boolean} deep Boolean to indicate whether to validate relations as well | |
* @return {Ext.data.Errors} The errors object | |
*/ | |
validate: function(deep) { | |
var errors = new Ext.data.Errors(), | |
validations = this.validations, |