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
| var fs = require('fs'); | |
| var gulp = require('gulp'); | |
| var runWintersmith = require('run-wintersmith'); | |
| var s3 = require("gulp-s3"); | |
| var options = { headers: {'Cache-Control': 'public'} } | |
| gulp.task('default', function() { | |
| console.log('`gulp deploy` to deploy') | |
| }); |
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 'net/http' | |
| require 'json' | |
| def request | |
| Net::HTTP.get(URI('http://socialclub.rockstargames.com/games/gtav/ps4/bawsaq')) | |
| uri = URI('http://socialclub.rockstargames.com/games/gtav/ajax/stockdetail') | |
| http = Net::HTTP.new(uri.host, uri.port) | |
| req = Net::HTTP::Get.new(uri) |
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(){ // on dom ready | |
| $('#cy').cytoscape({ | |
| layout: { | |
| name: 'cose', | |
| padding: 10 | |
| }, | |
| style: cytoscape.stylesheet() | |
| .selector('node') |
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
| launchctl stop com.mcafee.menulet | |
| launchctl stop com.mcafee.reporter | |
| launchctl remove com.mcafee.menulet | |
| launchctl remove com.mcafee.reporter | |
| sudo su - | |
| launchctl stop com.mcafee.virusscan.fmpd | |
| launchctl stop com.mcafee.ssm.ScanManager |
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
| // Matthew McMillan | |
| // @matthewmcmillan | |
| // http://matthewcmcmillan.blogspot.com | |
| // | |
| // Digital speedometer | |
| // | |
| // VSS on car connects to pin 5 | |
| // CLK on display to Analog pin 5 | |
| // DAT on display to Analog pin 4 | |
| // |
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
| OPERANDS = {zero: 0, one: 1, two: 2, three: 3, four: 4, five: 5, six: 6, seven: 7, eight: 8, nine: 9} | |
| OPERATIONS = {plus: :+, minus: :-, times: :*, divided_by: :/} | |
| def self.method_missing(message, *args) | |
| if is_target_message? message | |
| process_message message, *args | |
| else | |
| super | |
| 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
| Stupid Shit |
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
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
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 DiceParser | |
| def initialize(dice) | |
| @dice = dice | |
| @singles = [] | |
| end | |
| def parse | |
| @groups = self.group_sets | |
| self.split_groups_from_singles | |
| return {:groups => @groups, :singles => @singles} | |
| end |