Skip to content

Instantly share code, notes, and snippets.

kMDItemAlternateNames = (
"Screen Shot 2013-08-31 at 10.05.35 PM.png"
)
kMDItemBitsPerSample = 40
kMDItemColorSpace = "RGB"
kMDItemContentCreationDate = 2013-09-01 05:05:43 +0000
kMDItemContentModificationDate = 2013-09-01 05:05:43 +0000
kMDItemContentType = "public.png"
kMDItemContentTypeTree = (
"public.png",
➜ pup.xcodeproj git:(can/Clu) ✗ touch ~/Library/Logs/TextMate.log
➜ pup.xcodeproj git:(can/Clu) ✗ tail -f ~/Library/Logs/TextMate.log
2013-08-30 11:47:05.748 TextMate[96310:c07] Project file not found at file path /Users/cduruk/Repos/pup/3rdparty/JNWCollectionView/JNWCollectionView.xcodeproj
2013-08-30 11:47:05.749 TextMate[96310:c07] (
0 CoreFoundation 0x00007fff8bc5eb06 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff9247c3f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8bc5e8dc +[NSException raise:format:] + 204
3 XcodeEditor.dylib 0x0000000102df6b4a -[XCProject initWithFilePath:] + 296
4 XcodeEditor.dylib 0x0000000102df6a04 +[XCProject projectWithFilePath:] + 68
5 OakFileBrowser 0x0000000102bc8e9a -[FSXcodeProjectDataSource itemsForGroup:withBasePath:inProject:] + 1631
@cduruk
cduruk / textmate_crash.log
Created August 30, 2013 18:17
Textmate Crash Log.
Process: TextMate [95279]
Path: /Users/USER/Downloads/TextMate.app/Contents/MacOS/TextMate
Identifier: com.macromates.TextMate.preview
Version: 2.0-alpha.9475 (9475)
Code Type: X86-64 (Native)
Parent Process: launchd [154]
User ID: 501
Date/Time: 2013-08-30 11:15:05.625 -0700
OS Version: Mac OS X 10.8.4 (12E55)
> var myList = document.querySelectorAll('.story-item');
undefined
> myList
myList
[
<div class="story-item">...</div>
,
<div class="story-item">...</div>
,
[...]
@cduruk
cduruk / test.js
Last active December 13, 2015 18:18
You meet a man on the street and he says, “I have two children and one is a son born on a Tuesday.” What is the probability that the other child is also a son?
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function getRandomChild() {
return {
gender: getRandomInt(0, 1),
dayOfBirth: getRandomInt(0, 6)
}
}
@cduruk
cduruk / cloc.txt
Created September 13, 2012 23:05
files
➜ js git:(master) cloc web2 mobile admin
zsh: correct 'cloc' to 'col' [nyae]? n
54 text files.
53 unique files.
0 files ignored.
http://cloc.sourceforge.net v 1.56 T=1.0 s (53.0 files/s, 15353.0 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
@cduruk
cduruk / Email
Created January 5, 2012 19:58
Media Infos for
Hi,
I am trying to encode some videos that were recorded with different iPhones into MP4 formats to make them playable on mobile web browsers like iPhone 3GS, iPhone 4 and Android.
Based on our testing, we found out that the videos Transloadit encodes are using the High video profile which makes them unplayable on the iPhone 3GS mobile web browser.
I have tried several things to lower the profile to Normal but I unfortunately couldn't get it to work. Some things I tried:
Based on:
http://avp.stackexchange.com/questions/2634/how-do-i-specify-baseline-h264-profile-using-ffmbc
@cduruk
cduruk / bio.json
Created December 2, 2011 23:05
My Twitter Bio
{"follow_request_sent": false, "profile_use_background_image": true, "default_profile_image": false, "id": 14911337, "verified": false, "profile_image_url_https": "https://si0.twimg.com/profile_images/1435951122/278751_2239183219008_1230861358_2674983_718503_o_normal.jpg", "profile_sidebar_fill_color": "E6F6F9", "is_translator": false, "profile_text_color": "333333", "followers_count": 1582, "profile_sidebar_border_color": "DBE9ED", "id_str": "14911337", "profile_background_color": "DBE9ED", "listed_count": 43, "status": {"favorited": false, "contributors": null, "truncated": false, "text": "@DeMarko Probably. That whole directory thing is a mess right now, esp. with iOS 5.", "created_at": "Sat Nov 12 00:12:14 +0000 2011", "retweeted": false, "in_reply_to_status_id_str": "135147479170691072", "coordinates": null, "id": 135147857266225153, "source": "<a href=\"http://itunes.apple.com/us/app/twitter/id409789998?mt=12\" rel=\"nofollow\">Twitter for Mac</a>", "in_reply_to_status_id": 135147479170691072, "place":
from foo import view_helpers
class AdminView(views.BaseView):
@view.view_config(route_name='admin.home',
decorator=views.logged_in_view_decorator,
renderer='admin/home.mako')
@view_helpers.require_groups(['employees'])
def home(self):
resp = dict()
resp['page_type'] = 'home'
[user]
name = Can Duruk
email = can@duruk.net
[github]
username = cduruk
[color]
diff = auto
status = auto
branch = auto