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
| 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 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
| 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 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
| XnMSwipeDetector SwipeDetector; | |
| XnMWaveDetector WaveDetector; | |
| var context = new XnMOpenNIContext(); | |
| XnMSessionManager sessionManager; | |
| try | |
| { | |
| context.Init(); | |
| sessionManager = new XnMSessionManager(context, "Wave,Click", "RaiseHand"); |
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
| 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 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
| #!/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 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
| # Rails 4 Application Template | |
| # | |
| # Author: Christoph Lupprich <christoph@luppri.ch> | |
| # | |
| # | |
| # Gems | |
| gem 'devise' | |
| gem 'cancan' |
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
| # encoding:utf-8 | |
| class Order < ActiveRecord::Base | |
| acts_as_paranoid | |
| attr_accessible :coupon_code, :plan, :subscription, :ordered_at, :address_attributes | |
| attr_accessor :coupon_code, :plan | |
| has_many :line_items, dependent: :destroy | |
| has_many :transactions, dependent: :destroy |
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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| watch: { | |
| css: { | |
| files: ['styles/*'], | |
| tasks: ['sass', 'cssmin', 'copy:css'] | |
| }, |
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
| 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 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
| data/** |
OlderNewer