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
# python 3.x | |
import datetime, os, glob | |
class Event(): | |
def __init__(self, text): | |
self.text = text | |
self.summary = self.getSummary() | |
self.duration = self.getDuration() | |
def getSummary(self): |
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
// Playground - noun: a place where people can play | |
import UIKit | |
class Hummingbird { | |
var name: String | |
init (name:String) { | |
self.name = name | |
} | |
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
// | |
// Node.m | |
// XML | |
// | |
// Created by artwalk on 9/16/14. | |
// Copyright (c) 2014 artwalk. All rights reserved. | |
// | |
#import "Node.h" |
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"> | |
<dict> | |
<key>items</key> | |
<array> | |
<dict> | |
<key>assets</key> | |
<array> | |
<dict> |
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
import AddressBook | |
let addressBook = ABAddressBook.sharedAddressBook() | |
let firstKey = "First" | |
let lastKey = "Last" | |
for people in addressBook.people() { | |
if let p = people as? ABPerson { | |
let f: AnyObject? = p.valueForKey(firstKey) |
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 list=[]; | |
var a=document.getElementsByTagName('img'); | |
for (var i=0,l=a.length;i<l;i++) | |
{ | |
if (/\.(jpg|gif|png|jpeg)$/im.test(a[i].getAttribute('src'))) | |
{ | |
list.push(a[i].getAttribute('src')); | |
} | |
} |
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
$url = "api/show" | |
$prefix = "TF" | |
def className | |
refineStr = $url.gsub("api", '') | |
a , b = refineStr.split('/') | |
return $prefix + a.capitalize + b.capitalize | |
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
ln -s $Path/AutoUpdateBrew/launchd.plist ~/Library/LaunchAgents/sh.brew.update | |
launchctl load ~/Library/LaunchAgents/sh.brew.update |
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
#!/usr/bin/env ruby | |
# Usage | |
# ruby DumpFiles.rb ~/$DirPath | |
require 'digest/md5' | |
require 'find' | |
path = ARGV[0] | |
path = './' if !path |
OlderNewer