I hereby claim:
- I am mteece on github.
- I am mteece (https://keybase.io/mteece) on keybase.
- I have a public key whose fingerprint is A11C 93B2 294C B115 A311 4302 6BB8 8693 3E75 10B6
To claim this, I am signing this object:
/* | |
* Compare the installed to required version. | |
* | |
* @param {String} installed The currently installed version string. | |
* @param {String} required The required version string. | |
* | |
* compareVersions('1.0.1', '1.0.0') returns true | |
* compareVersions('1.0.0', '1.0.0') returns true | |
* compareVersions('0.0.9', '1.0.0') returns false | |
* compareVersions('1.0.0', '1.0.1') returns false |
NSString *URLString = @"http://example.com/path"; | |
NSDictionary *parameters = @{ }; | |
NSURLRequest *request = [[AFJSONRequestSerializer serializer] requestWithMethod:@"POST" URLString:URLString parameters:parameters error:nil]; | |
AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; |
@interface ExampleClass : UIViewController | |
@property (nonatomic, assign) BOOL someBool; | |
// a few method declarations | |
@end |
I hereby claim:
To claim this, I am signing this object:
moveTo = function (arr, value, position) { | |
var index = arr.indexOf(value), newPos = position - 1, temp = arr[newPos]; | |
if (index === -1) return; | |
if (newPos >= arr.length || newPos < 0) return; | |
if (index === newPos) return; | |
arr.splice(newPos, 1, value); // Remove 1 item at newPos insert value | |
arr.splice(index, 1, temp); // Remove 1 item at index, insert temp | |
} | |
//var a = ['Matt', 'Ralph', 'Jason']; |
Root.plist
in source code, paste the code below to replace it,<?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>PreferenceSpecifiers</key>
# OS X Finder | |
.DS_Store | |
# Xcode per-user config | |
*.pbxuser | |
!default.pbxuser | |
*.mode1 | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 |
{ | |
"completed_in": 0.012, | |
"max_id": 136536013832069120, | |
"max_id_str": "136536013832069120", | |
"next_page": "?page=2&max_id=136536013832069120&q=twitterapi&rpp=1", | |
"page": 1, | |
"query": "twitterapi", | |
"refresh_url": "?since_id=136536013832069120&q=twitterapi", | |
"results": [ | |
{ |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Diagnostics; | |
using System.Collections.ObjectModel; | |
using System.Runtime.Serialization; | |
/* | |
using My.Domain.Namespace; |
(function(){ | |
// FizzBuzz | |
for(var i=1; i<=100; i++) { | |
var fizz = (i % 3 == 0 ? "fizz" : "") + (i % 5 == 0 ? "buzz" : ""); | |
console.log(fizz == "" ? i : fizz); | |
} | |
})(); |