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
sudo ln -s /usr/local/bin/ksdiff /usr/bin/ksdiff |
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
LiveReload is waiting for browser to connect. | |
[[:initialize]] | |
[[:receive_data, | |
"GET /websocket HTTP/1.1\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nHost: localhost:35729\r\nOrigin: safari-extension://com.mockko.livereload-d963m2vvch\r\nCookie: has_js=1\r\nSec-WebSocket-Key1: 8U O. I4QP8 9p y30{(00 5\r\nSec-WebSocket-Key2: 4 12&52} 0 Q 55 60\r\n\r\n\260\257\017\322\310\357Cv"]] | |
[[:inbound_headers, | |
"GET /websocket HTTP/1.1\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nHost: localhost:35729\r\nOrigin: safari-extension://com.mockko.livereload-d963m2vvch\r\nCookie: has_js=1\r\nSec-WebSocket-Key1: 8U O. I4QP8 9p y30{(00 5\r\nSec-WebSocket-Key2: 4 12&52} 0 Q 55 60\r\n\r\n\260\257\017\322\310\357Cv"]] | |
[[:upgrade_headers, |
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
does = is = { true => 'Yes', false => 'No' } | |
# Use it | |
does[10 == 50] # => "No" | |
is[10 > 5] # => "Yes" |
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
// Mobile Safari in standalone mode | |
if(("standalone" in window.navigator) && window.navigator.standalone){ | |
window.addEventListener("load",function() { | |
var links = document.getElementsByTagName('a'), | |
i = link.length - 1; | |
for ( ;i; i--) | |
{ |
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
helper_method :grand_parent, :parent, :resource | |
def grand_parent | |
end | |
def parent | |
@parent = params .... | |
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
// Usage | |
// [1, 2, 3, 4].max() => 4 | |
// [1, 2, 3, 4].min() => 1 | |
// | |
// With blocks | |
// [1, 2, 3, 4].max( function(d){ | |
// return d*-1; | |
// }); => -1 | |
// | |
// [1, 2, 3, 4].min( function(d){ |
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
# Additional translations at http://github.com/plataformatec/devise/wiki/I18n | |
hu: | |
errors: | |
messages: | |
expired: "lejárt, igényelj egy újat" | |
not_found: "nem található" | |
already_confirmed: "már meg van erősítve" | |
not_locked: "nincs zárolva" | |
not_saved: |
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
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:og="http://ogp.me/ns#" | |
xmlns:fb="http://www.facebook.com/2008/fbml"> | |
<body> | |
<a href="#" onclick=window.open("http://www.facebook.com/dialog/pagetab? | |
app_id=YOUR_APP_ID&next=YOUR_URL","PageTab","width=500,height=200");> | |
Dialog</a> | |
</body> | |
</html> |
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
{ | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListAllMyBuckets", | |
"s3:ListBucket", | |
"s3:GetBucketLocation" | |
], | |
"Resource": "arn:aws:s3:::*" |
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
{ | |
"Version": "2008-10-17", | |
"Id": "", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, |
OlderNewer