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
curl -s -X GET http://localhost:5984/_stats | echo "[$(cat -), { \"datetime\": \"$(date -u +"%Y-%m-%dT%H:%M:%SZ")\" }]" | jq '.[0] + .[1]' | curl -X POST -H "Content-Type: application/json" -d @- http://localhost:5984/stats |
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
data/** |
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
source 'https://rubygems.org' | |
gem 'bson_ext' | |
gem 'mongo_mapper', '0.13.1' |
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
# spec/support/schema_matcher.rb | |
class Schema | |
@definitions = {} | |
def self.define(name, &block) | |
@definitions[name] = block.call | |
end | |
def self.defined?(name) | |
@definitions.key?(name) |
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
using System; | |
using System.Net; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Documents; | |
using System.Windows.Ink; | |
using System.Windows.Input; | |
using System.Windows.Media; | |
using System.Windows.Media.Animation; | |
using System.Windows.Shapes; |
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 HeatMapLayer : DynamicLayer | |
{ | |
BackgroundWorker renderThread; //background thread used for generating the heat map | |
ESRI.ArcGIS.Client.Geometry.PointCollection heatMapPoints; | |
private Envelope fullExtent; //cached value of the calculated full extent | |
private struct HeatPoint | |
{ | |
public int X; | |
public int Y; |
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
XnMSwipeDetector SwipeDetector; | |
XnMWaveDetector WaveDetector; | |
var context = new XnMOpenNIContext(); | |
XnMSessionManager sessionManager; | |
try | |
{ | |
context.Init(); | |
sessionManager = new XnMSessionManager(context, "Wave,Click", "RaiseHand"); |
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
ENV["WATCHR"] = "1" | |
system 'clear' | |
def growl(message) | |
growlnotify = `which growlnotify`.chomp | |
title = "Watchr Test Results" | |
message.gsub!(/\e\[\d+m/, "") | |
image = message.include?('0 failures, 0 errors') ? "~/.watchr_images/passed.png" : "~/.watchr_images/failed.png" | |
options = "-w -n Watchr --image '#{File.expand_path(image)}' -m '#{message}' '#{title}'" | |
system %(#{growlnotify} #{options} &) |
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
#!/bin/bash | |
# Sorts the output of `git-tag` correctly for version string like v1.2.3.4. | |
# Save this file somewhere in your bin path and execute with git tag-semantic | |
semantic_tags=$(git tag | sort -n -t. -k1,1 -k2,2 -k3,3 -k4,4) | |
echo "$semantic_tags" |
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
# Rails 4 Application Template | |
# | |
# Author: Christoph Lupprich <christoph@luppri.ch> | |
# | |
# | |
# Gems | |
gem 'devise' | |
gem 'cancan' |
OlderNewer