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
| <?xml version="1.0" encoding="utf-8"?> | |
| <opml version="1.0"> | |
| <head> | |
| <title>My feedly feeds</title> | |
| </head> | |
| <body> | |
| <outline text="iOS Programming"> | |
| <outline text="Cocoa Is My Girlfriend" htmlUrl="http://www.cimgf.com" type="rss" xmlUrl="http://www.cimgf.com/feed/"/> | |
| <outline text="iDevBlogADay" htmlUrl="http://idevblogaday.com" type="rss" xmlUrl="http://feeds.feedburner.com/idevblogaday"/> |
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
| // | |
| // UITextField+Autocomplete.h | |
| // | |
| // Created by Andrei Puni on 7/23/13. | |
| // | |
| #import <UIKit/UIKit.h> | |
| typedef void(^UpdateStringBlock)(NSArray *strings); |
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
| [APUtils benchmark:^{ | |
| for (int i = 0; i < 1000000; ++i) { | |
| self.testing = @(i); | |
| } | |
| } name:@"self.testing = @(i);"]; | |
| [APUtils benchmark:^{ | |
| for (int i = 0; i < 1000000; ++i) { | |
| [self setValue:@(i) forKey:@"testing"]; | |
| } |
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
| require 'json' | |
| def tabspaces indent_level | |
| return " " * indent_level | |
| end | |
| def to_objc object, indent_level = 0, ignore_first = false | |
| first_indent = ignore_first ? "" : tabspaces(indent_level) | |
| indent = tabspaces indent_level | |
| if object.is_a? Array |
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
| [[NSNotificationCenter defaultCenter] addObserverForName:nil | |
| object:nil | |
| queue:[NSOperationQueue mainQueue] | |
| usingBlock:^(NSNotification *notification) { | |
| PO(notification) | |
| }]; |
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
| // | |
| // UIColor+lerp.h | |
| // Lotus | |
| // | |
| // Created by Andrei on 3/3/13. | |
| // Copyright (c) 2013 Andrei. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> |
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
| #include <mach/mach_host.h> | |
| unsigned int countCores() | |
| { | |
| host_basic_info_data_t hostInfo; | |
| mach_msg_type_number_t infoCount; | |
| infoCount = HOST_BASIC_INFO_COUNT; | |
| host_info(mach_host_self(), HOST_BASIC_INFO, | |
| (host_info_t)&hostInfo, &infoCount); |
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 | |
| require 'nokogiri' | |
| require 'open-uri' | |
| SITE = 'http://bunnyapprovesthesechanges.com/' | |
| XPATH = '//*[@id="content"]/p' | |
| doc = Nokogiri::HTML(open(SITE)) |
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
| javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");})(); |
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
| (def lower_list (list pivot) | |
| (if (atom list) | |
| (list) | |
| (if (le (head list) pivot) | |
| (append ((head list)) (lower_list (tail list) pivot)) | |
| (lower_list (tail list) pivot) | |
| ))) | |
| (def upper_list (list pivot) | |
| (if (atom list) |