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 | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| # NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | /usr/bin/env LC_CTYPE=C tr -dc 'a-km-z02-9' | fold -w 32 | head -n 1 |
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
| #import "SpecHelper.h" | |
| #import <objc/runtime.h> | |
| @implementation SpecHelper | |
| + (void)load | |
| { | |
| [super load]; | |
| //Class klass = NSClassFromString(@"AVYPhotoEditorCustomization"); | |
| Class klass = objc_lookUpClass("AVYPhotoEditorCustomization"); | |
| Protocol *excludeProtocol = @protocol(SPTExcludeGlobalBeforeAfterEach); |
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
| dingo:shoes eric$ rake spec [168/3838](in /Users/eric/code/shoes-atom) | |
| Cannot handle dynamic require :rspec/core:137 | |
| Cannot handle dynamic require :rspec/core:137 | |
| Cannot handle dynamic require :rspec/support: | |
| Cannot handle dynamic require :shoes/dsl: | |
| NameError: uninitialized constant Core::Warnings | |
| http://localhost:9999/assets/opal/rspec/sprockets_runner.js:2436 | |
| http://localhost:9999/assets/opal/rspec/sprockets_runner.js:1349 | |
| http://localhost:9999/assets/opal/rspec/sprockets_runner.js:478 |
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 Stroke | |
| def stroke | |
| style[:stroke] | |
| end | |
| def stroke=(new_stroke) | |
| style[:stroke] = new_stroke | |
| end | |
| end |
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
| // example using the raf module from npm. try changing some values! | |
| var requestAnimationFrame = require("raf") | |
| var canvas = document.createElement("canvas") | |
| canvas.width = 500 | |
| canvas.height = 500 | |
| document.body.appendChild(canvas) | |
| var context = canvas.getContext("2d") |
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 Style | |
| def style | |
| # Special style handling | |
| @style | |
| end | |
| end | |
| module StyleWith | |
| def style_with(*styles) | |
| styles.map(&:to_sym).each do |style| |
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
| Undisposed resources: | |
| 1 => [Java::OrgEclipseSwtGraphics::Color] | |
| /Users/eric/code/shoes4/lib/shoes/swt/color.rb:13:in `initialize' | |
| /Users/eric/code/shoes4/lib/shoes/swt/app.rb:17:in `initialize' | |
| /Users/eric/code/shoes4/lib/shoes/app.rb:141:in `setup_gui' | |
| /Users/eric/code/shoes4/lib/shoes/app.rb:58:in `initialize' | |
| /Users/eric/code/shoes4/lib/shoes/app.rb:29:in `app' | |
| /Users/eric/code/shoes4/samples/simple-editor.rb:3:in `(root)' | |
| /Users/eric/code/shoes4/lib/shoes/cli.rb:1:in `load' | |
| /Users/eric/code/shoes4/lib/shoes/cli.rb:1:in `(root)' |
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
| #!/usr/bin/env bash | |
| # | |
| # Print the short version of a git revision and copy it | |
| # to the OS X clipboard | |
| REV=${1-HEAD} | |
| git rev-parse --short $REV -- | tee >(tr -d '\n' | pbcopy) |
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
| <html> | |
| <head> | |
| <link rel="stylesheet" type="text/css" href="https://raw.github.com/mrmrs/colors/master/css/colors.css"> | |
| </head> | |
| <body> | |
| <p><em>January 2014</em></p> | |
| <article> | |
| <h2><a href="http://bl.ocks.org/">bl.ocks.org</a></h2> | |
| <p>View your gist (html, css, etc) as a web page, by <a href="https://github.com/mbostock">Mike Bostock</a></p> | |
| </article> |
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
| class EQBuddy < Shoes | |
| url '/', :begin_the_testing | |
| def begin_the_testing | |
| button "Begin the Testing!" do | |
| alert "Hello EQBuddy" | |
| end | |
| end | |
| end | |
NewerOlder