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
| // | |
| // GIFLoader.h | |
| // AnimatedGifExample | |
| // | |
| // Created by Andrei on 10/15/12. | |
| // Copyright (c) 2012 Whatevra. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.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
| require 'nokogiri' | |
| require 'open-uri' | |
| album = "http://imgur.com/a/o37VA/layout/blog" | |
| dom = Nokogiri::HTML(open(album)) | |
| base_name = "sexy" | |
| index = 1 |
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
| int put(int a, int b) { | |
| if (b == 0) { | |
| return 1; | |
| } | |
| if (b == 1) { | |
| return a; | |
| } | |
| int ret = put(a, b/2); | |
| return ret * ret * (b % 2 ? a : 1); | |
| } |
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
| <LPDirectoryFileCollection xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='www.classlink.galaxy.com'> | |
| <LPDirectoryFile> | |
| <ContentType i:nil='true'/> | |
| <CreatedDate> | |
| January 13, 2012 | |
| </CreatedDate> | |
| <DirectoryCount> | |
| 0 | |
| </DirectoryCount> | |
| <FileCount> |
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
| // | |
| // CloudFolderContentsDataRequestSpecs.m | |
| // Launchpad v3 | |
| // | |
| // Created by Andrei on 11/16/12. | |
| // Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
| // | |
| #import "CloudFolderContentsDataRequestSpecs.h" | |
| #import "CloudFolderContentDataRequest.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
| domains | |
| element = integer | |
| list = element* | |
| predicates | |
| sort(list, list) | |
| join(list, list, list) | |
| split(list, element, list, list, list, list) | |
| inverse(list, list, list) |
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) |
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
| #!/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
| #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); |