I hereby claim:
- I am plukevdh on github.
- I am plukevdh (https://keybase.io/plukevdh) on keybase.
- I have a public key whose fingerprint is 6123 C2CA ED33 DBC7 9E9F ED4A D7CE 9EB3 8910 3832
To claim this, I am signing this object:
AceEditor = angular.module('AceEditor', []) | |
AceEditor.controller 'EditorCtrl', ['$scope', 'editorSession', ($scope, editorSession) -> | |
$scope.editing = editorSession.editing | |
$scope.editors = editorSession.editors | |
$scope.sanitize = editorSession.sanitize | |
] | |
codeFetchFactory = (editor) -> | |
-> | |
editor.getSession().getDocument().getValue() |
require 'schemad/extensions' | |
require 'schemad/type_handler' | |
module Schemad | |
class Entity | |
extend Schemad::Extensions | |
def self.inherited(subclass) | |
subclass.instance_variable_set(:@attributes, []) | |
end |
I hereby claim:
To claim this, I am signing this object:
if RUBY_PLATFORM == 'java' | |
require 'kramdown' | |
TYPE = Kramdown | |
else | |
require 'redcarpet' | |
TYPE = Redcarpet | |
end | |
class MarkdownRenderer | |
def initialize(type=TYPE) |
require 'sinatra' | |
require 'pry' | |
USERNAME = 'BFGIT' | |
SALT = "mytestsalt" | |
def generate_hash(str) | |
Digest::SHA256.new.digest str | |
end |
2014-02-13T00:25:55Z 1267 TID-9a3e WARN: {:context=>"Sidetiq::Handler#dispatch"} | |
2014-02-13T00:25:55Z 1267 TID-9a3e WARN: unable to create new native thread | |
2014-02-13T00:25:55Z 1267 TID-9a3e WARN: java.lang.Thread.start0(Native Method) | |
java.lang.Thread.start(Thread.java:693) | |
java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949) | |
java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1371) | |
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:110) | |
org.jruby.RubyEnumerator$ThreadedNexter.ensureStarted(RubyEnumerator.java:622) | |
org.jruby.RubyEnumerator$ThreadedNexter.next(RubyEnumerator.java:578) | |
org.jruby.RubyEnumerator.next(RubyEnumerator.java:435) |
$headers = @{"x-api-key"="$OctopusParameters['NewRelic.APIKey']"} | |
$key = "NewRelic." + $OctopusParameters['Octopus.Project.Name'] + ".ID" | |
$body = @{ | |
"deployment[user]"="$OctopusParameters['Octopus.Deployment.CreatedBy.DisplayName']"; | |
"deployment[revision]"="$OctopusParameters['Octopus.Release.Number']"; | |
"deployment[description]"="$OctopusParameters['Octopus.Release.Notes']"; | |
"deployment[application_id]"="$OctopusParameters[$key]"; | |
} |
// same things as ~~ | |
// basically rounds to an integer (when x is a float) | |
// see: http://stackoverflow.com/questions/4055633/what-does-do-in-javascript | |
function doubleTilde(x) { | |
if(x < 0) return Math.ceil(x); | |
else return Math.floor(x); | |
} | |
function range(to, from, step) { | |
// set defaults |
require 'rspec' | |
def meth1(order, &block) | |
order << 1 | |
block.call order if block_given? | |
order | |
end | |
def meth2(order, &block) | |
order << 2 |
Mode LastWriteTime Length Name | |
---- ------------- ------ ---- | |
----- 1/7/2014 11:34 AM 103424 Antlr3.Runtime.dll | |
----- 1/7/2014 11:34 AM 435712 Antlr3.Runtime.pdb | |
----- 1/7/2014 11:34 AM 56320 AspNet.WebApi.HtmlMicrodataFormatter.dll | |
----- 1/7/2014 11:34 AM 39424 Common.Logging.dll | |
----- 1/7/2014 11:34 AM 14336 Common.Logging.Log4Net1211.dll | |
----- 1/7/2014 11:34 AM 34304 Common.Logging.Log4Net1211.pdb | |
----- 1/7/2014 11:34 AM 14100 Common.Logging.Log4Net1211.xml | |
----- 1/7/2014 11:34 AM 142848 Common.Logging.pdb |