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 | |
| # This is a script to quickly spin-up a Rails Project and push it to Heroku. | |
| # Great for Hackathons and Rails-centric code challenges! | |
| # author: John Randall | |
| # https://gist.github.com/johntrandall/a33c7d4c880fcef2a6dc0258abec92fe | |
| echo Hello World! |
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
| # OSX for Hackers (Mavericks/Yosemite) | |
| # | |
| # Source: https://gist.github.com/brandonb927/3195465 | |
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Ask for the administrator password upfront |
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
| Update 15-03-23: This might be a bug in node. | |
| See | |
| * https://github.com/joyent/node/blob/4b69dcb9610c3fa6cb0bc96f379b749bba83a817/src/smalloc.cc#L280 | |
| * https://github.com/joyent/node/issues/9180 | |
| Hello. | |
| When a leadfoot .findByCssSelector fails, I'm usually getting a weird output on the console: | |
| FAIL: main - spashPage module - find_login_btn (10483ms) | |
| Assertion failed: (start <= end), function SliceOnto, file ../src/smalloc.cc, line 281. |
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
| pageObjUserSettings{ | |
| // This works, it returns an array of strings, parallel to the array of elements returned by the .findAllByCSSSelector() | |
| getAllTopicNames: function(){ | |
| return function () { | |
| return this.parent | |
| .findAllByCssSelector(".topicName") | |
| .getVisibleText() | |
| ; | |
| }; | |
| }, |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| weapons_list = [ | |
| "Baselard", | |
| "Cinquedea", | |
| "Ear dagger", | |
| "GroBes Messer", | |
| "Katar", | |
| "Mercygiver", | |
| "Poniard", | |
| "Rondel", | |
| "Scramasax", |
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
| <div id='meta_data_printer'> | |
| <h1>Action Dispatch</h1> | |
| <h2>Action Dispatch::Request:</h2> | |
| <p><%= "request = #{request} " %></p> | |
| <p><%= "request.GET() = #{request.GET()} " %></p> | |
| <p><%= "request.POST() = #{request.POST()} " %></p> | |
| <p><%= "request.authorization() = #{request.authorization()} " %></p> | |
| <p>HOW DO I VIEW THIS STRING?<%= "request.body() = #{request.body()} " %></p> |