.
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
effect module My where { command = MyCmd } exposing | |
( init | |
) | |
import Task exposing (Task) | |
import Platform.Cmd exposing (Cmd) | |
-- Manager |
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
<html> | |
<head> | |
<script type='text/javascript'> | |
+(function(undefined){ | |
var Acute = function(){ | |
} | |
var TEXT_PLACEHOLDER_RE = /\{\{[\w\.]+\}\}/ |
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
{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"terms": { | |
"baz_id": [ | |
6 |
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
function rad(x) {return x*Math.PI/180;} | |
function find_nearest(my_position, points) { | |
var lat = my_position[0]; | |
var lng = my_position[1]; | |
var R = 6371; // radius of earth in km | |
var distances = []; | |
var closest = null; | |
for( i=0;i<points.length; i++ ) { | |
var mlat = points[i][0]; |
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
var $ = require('jquery') | |
var _ = require('underscore') | |
var Twitter = require('twitter-api'); | |
var twitter_consumer = { | |
'consumer_key' : 'XXX', | |
'consumer_secret' : 'XXX' | |
} | |
var twitter_token = { | |
'access_token_key' : 'XXX', |
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
%title {{title}} |
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
index: | |
analysis: | |
analyzer: | |
spa: | |
type: custom | |
tokenizer: standard | |
filter: [standard, asciifolding, lowercase, stop, snow_spa] | |
default: | |
type: custom | |
tokenizer: standard |
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
class Target { | |
List<TargetItem> items; | |
} | |
interface TargetItem {} | |
class TargetItemA implements TargetItem {} | |
class TargetItemB implements TargetItem {} | |
class Source { |
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
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__) | |
$LOAD_PATH.unshift File.expand_path('../../kpeg/lib', __FILE__) | |
require 'kpeg' | |
class Fancy | |
G = KPeg::Grammar.new | |
KPeg.compile DATA.read, "Parser", self |