--- 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 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 |
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
<!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"> |
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
class String | |
def to_numeronym | |
self.gsub(/\A(.)(.*)(.)\Z/) { "#{$1}#{$2.length}#{$3}" } | |
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
var WebSocket = null; | |
hiddenFrames.add(hiddenFrames.HiddenFrame({ | |
'onReady': function () { | |
var self = this; // Don't use bind for `this` since GCC warns w/ "dangerous use of the global this object" | |
self.element.contentWindow.location = require("sdk/self").data.url("ui/hidden.html"); | |
self.element.addEventListener("DOMContentLoaded", function () { | |
console.log("Initializing WebSocket for '" + self.element.contentWindow.location + "'"); | |
//noinspection JSUnresolvedVariable | |
WebSocket = self.element.contentWindow.MozWebSocket || self.element.contentWindow.WebSocket; |
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 openURLInActiveTab(url){ | |
if (tabs.activeTab.url === undefined) { | |
tabs.open({url: url, onOpen: function onOpen(tab) { console.log("[GLOBAL]: Opened tab: " + tab); tab.activate(); tab.url = url; }}); | |
} | |
else { | |
tabs.activeTab.url = url; | |
} | |
} |
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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>Activate</key> | |
<string>Normal</string> | |
<key>CreationDate</key> | |
<real>460387677.55399102</real> | |
<key>IsActive</key> |
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
// | |
// NSMetadataItem+JPIKImageBrowserItem.m | |
// Created by Jamie Phelps on 10/20/09. | |
// | |
// Licensed under the Don't Be A Dick License | |
// | |
@interface NSMetadataItem (JPIKImageBrowserItem) | |
-(NSString *)imageUID; | |
-(NSString *)imageRepresentationType; |
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
// | |
// NSMetadataItem+JPQLPreviewItem.m | |
// Created by Jamie Phelps on 2/6/10. | |
// | |
// Licensed under the Don't Be A Dick License | |
// | |
@interface NSMetadataItem (JPQLPreviewItem) | |
-(NSString *)previewItemTitle; | |
-(NSURL *)previewItemURL; |
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
<script type="text/javascript"> | |
// <![CDATA[ | |
eCSStender.disableCache(); | |
eCSStender.addMethod('findBySelector',Sizzle); | |
function testSupport( selector ) | |
{ | |
try { | |
eCSStender.methods.findBySelector(selector); | |
} | |
catch( e ) |
OlderNewer