This file contains 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 'nokogiri' | |
class LeaguePass | |
def self.authenticate(login, pass) | |
@@http = Net::HTTP.new('dribbble.com') | |
@@resp = @@http.get('/session/new') | |
@@resp = @@http.post('/session', "login=#{login}&password=#{pass}", {'Cookie' => @@resp.response['set-cookie'].to_s}) | |
end |
This file contains 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
background: | |
RAILS >= 3.0 | |
SQLITE3 >= 3.7.5 | |
>> Delayed::Job.all | |
Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT "delayed_jobs".* FROM "delayed_jobs" | |
=> [#<Delayed::Backend::ActiveRecord::Job id: 1, priority: 0, attempts: 0, |
This file contains 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
# System and apps settings | |
# Use AirDrop over every interface. | |
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1 | |
# Always open everything in Finder's list view. | |
defaults write com.apple.Finder FXPreferredViewStyle Nlsv | |
# Show the ~/Library folder. | |
chflags nohidden ~/Library |
This file contains 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
<?xml version='1.0' encoding='UTF-8'?> | |
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> | |
<app appid='pjnonllkhonjkfafhbffokbblihgadpi'> | |
<updatecheck codebase='http://entropiauniverse.pl/cvx/plusone.crx' version='1.2.329.1' /> | |
</app> | |
</gupdate> |
This file contains 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
Dir.glob(File.join('**', '*.coffee')).each do |path| | |
File.open(path, 'r+') do |file| | |
string = file.read | |
string.encode!('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '') | |
file.rewind | |
file.write(string) | |
end | |
end |
This file contains 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 ruby | |
def compile_script(file) | |
compiled = File.readlines(file).map do |line| | |
case line | |
when /^#!/ | |
"#!/usr/bin/env fish" | |
when /^\s*(?:export )?(.*?)=(.*)/ | |
name, content = $1, $2 | |
if !content.match(/:\/\//) # not protocol strings (eg. "http://") |
This file contains 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 findElement(options, instances) { | |
var React = require("React"); | |
var ReactMount = require("ReactMount"); | |
var ret = null; | |
if (!instances) instances = ReactMount._instancesByReactRootID; | |
for (n in instances) { | |
var instance = instances[n]; |
This file contains 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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
dynamicClass: 0, | |
actions: { | |
updateClass() { | |
this.incrementProperty('dynamicClass'); | |
}, |
This file contains 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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
value: 'abc\ntest here\nAlso here', | |
values: Ember.computed('value', function(){ | |
return (this.get('value') || '').split('\n'); | |
}) | |
}); |
This file contains 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
[2019-01-21 12:32:43.753] [info] Checking for update | |
[2019-01-21 12:32:47.149] [info] Found version 2.27.1 (url: caprine-setup-2.27.1.exe) | |
[2019-01-21 12:32:47.150] [info] Downloading update from caprine-setup-2.27.1.exe | |
[2019-01-21 12:32:47.188] [info] No cached update info available | |
[2019-01-21 12:32:47.194] [info] Download block maps (old: "https://github.com/sindresorhus/caprine/releases/download/v2.26.0/caprine-setup-2.26.0.exe.blockmap", new: https://github.com/sindresorhus/caprine/releases/download/v2.27.1/caprine-setup-2.27.1.exe.blockmap) | |
[2019-01-21 12:32:48.039] [info] File has 1224 changed blocks | |
[2019-01-21 12:32:48.058] [info] Full: 43,031.11 KB, To download: 25,546.79 KB (59%) | |
[2019-01-21 12:32:49.158] [info] Differential download: https://github.com/sindresorhus/caprine/releases/download/v2.27.1/caprine-setup-2.27.1.exe | |
[2019-01-21 12:32:49.345] [info] Redirect to https://github-production-release-asset-2e65be.s3.amazonaws.com/42574339/8d8ac280-1ccf-11e9-988d-bb3b217fbeea | |
[2019-01-21 12:33:25. |
OlderNewer