--- google.com ping statistics ---
228 packets transmitted, 228 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 39.070/1937.931/19344.446/3880.397 ms
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
#!/usr/bin/env ruby | |
class FunTime | |
def initialize | |
@array = ['foo', 'bar', 'zing'] | |
end | |
def gimme_bar | |
hinky | |
bar = @array[1] | |
puts bar.inspect |
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 workersForTab(tab, callback) { | |
var result = [], emitted; | |
for (var i = 0; i < workers.length; ++i) { | |
if (workers[i].tab == tab) result.push(workers[i]); | |
} | |
return result; | |
} |
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 pageModParams = { | |
'include': ["*"], | |
'attachTo': ["top", "existing", "frame"], | |
'contentScriptFile': [ | |
data.url("src/common.js"), | |
data.url("src/end.js") | |
//other scripts to include | |
] | |
}; | |
function attachWorkerToTab(tab){ |
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
ActionView::MissingTemplate (Missing template /invoice with {:locale=>[:en], :formats=>[:text], :handlers=>[:erb, :builder]}. Searched in: | |
* "/var/www/appname/releases/20131003214241/app/views" | |
): | |
app/mailers/mailer.rb:42:in `block in invoice' | |
app/mailers/mailer.rb:41:in `invoice' | |
app/controllers/admin_controller.rb:410:in `resend_invoice' |
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
Started POST "/account" for 127.0.0.1 at 2013-10-14 19:45:05 -0500 | |
Processing by AccountsController#create as HTML | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ALG1cWqa6VZn+LIjfi/aeCOLl9rDFI+JSKDn6yyn+V4=", "plan"=>"Free", "account"=>{"name"=>"Test2 Here", "domain"=>"test2", "admin_attributes"=>{"email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}} | |
Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`full_domain` = 'myhood.dev' AND (`accounts`.`deleted_at` IS NULL) LIMIT 1 | |
Account Load (40.4ms) SELECT `accounts`.* FROM `accounts` WHERE (`accounts`.`deleted_at` IS NULL) LIMIT 1 | |
SubscriptionPlan Load (0.3ms) SELECT `subscription_plans`.* FROM `subscription_plans` WHERE `subscription_plans`.`name` = 'Free' LIMIT 1 | |
(0.1ms) BEGIN | |
User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = '[email protected]' AND `users`.`account_id` IS NULL) LIMIT 1 | |
CACHE (0.0ms) SELECT 1 AS one FROM `users` WHERE (` |
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
$("#sections .panel.section").hide().first().show(); | |
$("li.highlight a").click(function(event) { | |
event.preventDefault(); | |
var target = $(event.currentTarget.getAttribute("href")); | |
if (target.is(":visible")) return; | |
$("#sections .panel.section:visible").children().fadeOut("fast", function(){ | |
$("#sections .panel.section").hide(); | |
target.show().children().fadeIn("fast"); | |
}); | |
}); |
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
- (NSSet *)tagsForFileAtPath:(NSString *)path { | |
const char *attrName = [@"com.apple.metadata:_kMDItemUserTags" UTF8String]; | |
const char *filePath = [path fileSystemRepresentation]; | |
ssize_t bufferLength = getxattr(filePath, attrName, NULL, 0, 0, 0); | |
void *buffer = malloc(bufferLength); | |
// now actually get the attribute string | |
getxattr(filePath, attrName, buffer, 255, 0, 0); | |
// convert to NSString |
I hereby claim:
- I am jxpx777 on github.
- I am jxpx777 (https://keybase.io/jxpx777) on keybase.
- I have a public key ASAZdbtpOCcWzDNcoKNVftcNmPhZ9vAIIup_FbVfwDAjmQo
To claim this, I am signing this object:
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>FWUPA</title> | |
<meta content="authenticity_token" name="csrf-param" /> | |
<meta content="NIhzA2wh/3UWZa5iS7ts9qmX69QwoaXxXG6UseNuLpE=" name="csrf-token" /> | |
</head> | |
<body> | |
<section id="wrap"> |