Skip to content

Instantly share code, notes, and snippets.

.social-count,
.stars,
strong.vcard-stat-count {
display: none !important;
}
gyp info it worked if it ends with ok
gyp info using node-gyp@3.2.1
gyp info using node@4.2.3 | linux | x64
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/package-builder/build/config.gypi',
@rentzsch
rentzsch / OmniFocus Selected Mail Messages.applescript
Created January 6, 2015 05:04
OmniFocus Selected Mail Messages.applescript
(*
OmniFocus Selected Mail Messages.applescript
Copyright (c) 2015 Jonathan 'Wolf' Rentzsch: http://rentzsch.com
Some rights reserved: http://opensource.org/licenses/mit
Pure AppleScript reimplementation of OmniGroup's Clip-o-Tron for OmniFocus.
Hopefully this implementation will be more resilient against OS X, Mail, and OmniFocus updates.
Successfully tested against OS X 10.10.1, OmniFocus 1.10.6, and OmniFocus 2.0.4.
#if 1
- (id)retain {
NSUInteger oldRetainCount = [super retainCount];
id result = [super retain];
NSUInteger newRetainCount = [super retainCount];
printf("%s<%p> ++retainCount: %lu => %lu\n", [[self className] UTF8String], self, oldRetainCount, newRetainCount);
printf("%s\n", [[[NSThread callStackSymbols] description] UTF8String]);
return result;
}
Sampling process 15358 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Deckset (pid 15358) every 1 millisecond
Process: Deckset [15358]
Path: /Applications/Deckset.app/Contents/MacOS/Deckset
Load Address: 0x10056c000
Identifier: com.unsignedinteger.Deckset
Version: 1.0 (1)
Code Type: X86-64
Parent Process: launchd [150]
#include <stdio.h> // for fprintf, stderr, perror
#include <stdlib.h> // for exit() and EXIT_FAILURE
#include <errno.h> // for errno
#include <fts.h> // for fts
int main(int argc, const char *argv[]) {
char * const paths[] = {"/tmp", NULL};
FTS *tree = fts_open(paths, FTS_COMFOLLOW|FTS_NOCHDIR, NULL);
if (!tree) {
Last login: Tue Jul 9 00:48:28 on ttys004
wolf-air1:~ wolf$ mkdir _gitspike2
wolf-air1:~ wolf$ cd _gitspike2
wolf-air1:_gitspike2 wolf$ date > dates.txt
wolf-air1:_gitspike2 wolf$ gti init
Initialized empty Git repository in /Users/wolf/_gitspike2/.git/
wolf-air1:_gitspike2 wolf$ git add .
wolf-air1:_gitspike2 wolf$ gti ci -m "initial commit"
[master (root-commit) 005ff52] initial commit
1 file changed, 1 insertion(+)
@interface Person : NSObject
@property(strong) NSString *firstName;
@property(strong) NSString *lastName;
- (NSString*)fullName;
@end
@implementation Person
- (NSString*)fullName {
require 'pp'
SEPS = Regexp.union(*[::File::SEPARATOR, ::File::ALT_SEPARATOR].compact)
def inspectPath(path_info)
parts = path_info.split SEPS
parts.inject(0) do |depth, part|
case part
when '', '.'
depth
"<!DOCTYPE html>"
"<html>"
"<head>"
" <meta charset=\"utf-8\" />"
" <style>"
" * {"
" margin:0;"
" padding:0;"
" }"
" </style>"