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
~/Dev/ytdl ❯ ruby ytdl.rb https://www.youtube.com/watch\?v\=ftIBZNklEFU R: 2.2.2 | |
[youtube] ftIBZNklEFU: Downloading webpage | |
[youtube] ftIBZNklEFU: Downloading video info webpage | |
[youtube] ftIBZNklEFU: Extracting video information | |
[youtube] ftIBZNklEFU: Downloading DASH manifest | |
[youtube] ftIBZNklEFU: Downloading DASH manifest | |
[download] Destination: Acid Interstate V1 - 2015 Remake-ftIBZNklEFU.m4a | |
[download] 100% of 3.33MiB in 00:01 | |
[ffmpeg] Correcting container in "Acid Interstate V1 - 2015 Remake-ftIBZNklEFU.m4a" | |
[ffmpeg] Destination: Acid Interstate V1 - 2015 Remake-ftIBZNklEFU.mp3 |
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
model = MyModel | |
column_names = %w{ first_column second_column } | |
columns = model.columns.select { |c| column_names.include?(c.name) } | |
columns.each do |c| | |
model.columns.delete(c) | |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document url("https://web.tweetdeck.com/") { | |
#nav-column, | |
#topbar { | |
display: none !important; | |
} | |
#container { | |
top: -3px; |
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
# Nginx config for redirecting traffic from port 80 to 8800 | |
upstream app { | |
server localhost:8800 fail_timeout=60; | |
} | |
server { | |
listen 80; | |
client_max_body_size 100m; | |
server_name app.example.com; |
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
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
events { |
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
pry(main)> s = Emvoicer::Services::Blinksale.new("xteamtest", "xteam-api", "xteam-api") | |
=> #<Emvoicer::Services::Blinksale:0x00000102b070e0> | |
pry(main)> EM.run { s.invoices({:status => "open"}, proc { |invoices| puts invoices; EM.stop }) } | |
{:id=>2706951, :number=>"1", :total_amount=>1200.0, :due_amount=>1200.0, :issued_on=>#<Date: 2011-06-22 (4911469/2,0,2299161)>, :due_on=>#<Date: 2011-07-07 (4911499/2,0,2299161)>, :currency=>"USD"} | |
=> nil | |
pry(main)> |
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
Start: ipsum | |
Start: dolor | |
Start: sit | |
Start: amet, | |
Start: consectetur | |
Start: adipiscing | |
Start: elit. | |
Start: Fusce | |
Start: pharetra | |
Start: ullamcorper |
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 class="tabs"> | |
<ul class="tab-list"> | |
<li><a href="#tab-1">Tab 1</a></li> | |
<li><a href="#tab-2">Tab 2</a></li> | |
<li><a href="#tab-3">Tab 3</a></li> | |
</ul> <!-- .tab-list --> | |
<div class="tab" id="tab-1"></div> | |
<div class="tab" id="tab-2"></div> | |
<div class="tab" id="tab-3"></div> |
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
. | |
├── README | |
├── app.js | |
├── css | |
│ ├── main.styl | |
│ └── reset.styl | |
├── db.js | |
├── game | |
│ ├── game.js | |
│ └── state_machine.js |
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
➜ zems git:(chat) cat package.json | |
{ | |
"name": "zems", | |
"version": "0.0.1", | |
"dependencies": { | |
"cluster": "0.6.2", | |
"cluster-socket.io": "0.2.0", | |
"connect": "1.4.2", | |
"connect-mongo": "0.1.2", | |
"express": "2.3.10", |
NewerOlder