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
require 'bundler/gem_tasks' | |
require 'jasmine' | |
require 'coffee-script' | |
require 'fileutils' | |
load 'jasmine/tasks/jasmine.rake' | |
task 'test' do | |
pattern = '{**/*.rb,**/*.slim,**/*.coffee}' |
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
function async_init() { | |
var element, type, src; | |
var parent = document.getElementsByTagName('body'); | |
var cdn = new Array; | |
cdn[0] = '//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js'; | |
for (var i in cdn) { | |
element = document.createElement('script'); |
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
function async_init() { | |
var element, type, src; | |
var parent = document.getElementsByTagName('body'); | |
var cdn = new Array; | |
cdn[0] = '//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js'; | |
for (var i in cdn) { | |
element = document.createElement('script'); |
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
secret = Digest::SHA1.hexdigest("yourpass") | |
a = ActiveSupport::MessageEncryptor.new(secret) | |
b = a.encrypt("eh") | |
c = ActiveSupport::MessageEncryptor.new(secret) | |
c.decrypt(b) |
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
#include <SPI.h> | |
#include <Ethernet.h> | |
byte mac[] = { 0x00, 0xAB, 0xCB, 0xCD, 0xDE, 0x02 }; | |
IPAddress ip(192,168,0,140); | |
IPAddress server(173,194,70,103); | |
EthernetClient client; |
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
log = function(mes){ | |
if (console){ | |
console.log(mes); | |
} | |
} | |
jQuery.fn.rank = function(min, max) { | |
var result = $.grep(this, function(shop){ | |
return min <= shop.rank && shop.rank <= max | |
}); |
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
def iis | |
path = File.absolute_path "website" | |
path = path.gsub('/', '\\') | |
sh "\"c:/Program Files (x86)/IIS Express/iisexpress\" /path:#{path} /port:9090" | |
end | |
def build | |
cd ".." | |
sln = FileList["*.sln"][0] | |
sh "c:/Windows/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe #{sln}" |
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.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Net; | |
using System.Text; | |
using System.IO; | |
namespace Website.Model | |
{ |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using NUnit.Framework; | |
using MongoDB.Driver; | |
using System.Web.Mvc; | |
using System.IO; | |
using MongoDB.Driver.GridFS; |