create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
#!/usr/bin/ruby | |
require 'rubygems' | |
installed_gems = Gem::Dependency.new '', Gem::Requirement.default | |
missing = [] | |
# mind the short-hand, looping over installed gem specs | |
specs = Gem.source_index.search installed_gems | |
specs.each do |spec| | |
gem = Gem::Dependency.new spec.name, spec.version | |
# looping over gem dependencies | |
specs = Gem.source_index.search gem |
@implementation NSCachedURLResponse(HackityHack) | |
- (id)initWithCoder:(NSCoder *)aDecoder | |
{ | |
return [self initWithResponse:[aDecoder decodeObjectForKey:@"response"] | |
data:[aDecoder decodeObjectForKey:@"data"] | |
userInfo:[aDecoder decodeObjectForKey:@"userInfo"] | |
storagePolicy:(NSURLCacheStoragePolicy)[aDecoder decodeIntForKey:@"storagePolicy"]]; | |
} |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
# Xcode Run Script for building iOS static framework. | |
# Requires a preconfigured Cocoa Touch Static Library. | |
# Usage: | |
# 1. Open project > Add Target > iOS Aggregate > Finish | |
# 2. Add Build Phase > Add Run Script > Paste | |
# 3. Manually assign PROJECT, TARGET, HEADERS, PRODUCT, OUTPUT | |
# 4. Run outputs to ${SRCROOT}/build | |
# | |
# License: Public Domain | |
# Author: Leonard van Driel, 2012 |
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { | |
UITableViewCell *cell = (UITableViewCell *)view; | |
if (cell == nil) { | |
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil]; | |
[cell setBackgroundColor:[UIColor clearColor]]; | |
[cell setBounds:CGRectMake(0, 0, cell.frame.size.width - 20, 44)]; | |
cell.tab = row UITapGestureRecognizer * singleTapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(toggleSelection:)]; | |
singleTapGestureRecognizer.numberOfTapsRequired = 1; | |
[cell addGestureRecognizer:singleTapGestureRecognizer]; | |
} |
#!/bin/sh | |
# WARNING: You may have to run Clean in Xcode after changing CODE_SIGN_IDENTITY! | |
# Verify that $CODE_SIGN_IDENTITY is set | |
if [ -z "$CODE_SIGN_IDENTITY" ] ; then | |
echo "CODE_SIGN_IDENTITY needs to be non-empty for codesigning frameworks!" | |
if [ "$CONFIGURATION" = "Release" ] ; then | |
exit 1 |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_comments); | |
String htmlComments = getHtmlComment("yourId", "yourShortName"); | |
webDisqus = (WebView) findViewById(R.id.disqus); | |
// set up disqus | |
WebSettings webSettings2 = webDisqus.getSettings(); |
public class MainActivity extends Activity { | |
private final MyActivityLifecycleCallbacks mCallbacks = new MyActivityLifecycleCallbacks(); | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
// Always register before calling into the super class. | |
getApplication().registerActivityLifecycleCallbacks(mCallbacks); | |
super.onCreate(savedInstanceState); |
comment = '''1L1ddeLL | |
1L1dd3LL | |
1L1ddELL | |
1L1dDeLL | |
1L1dD3LL | |
1L1dDELL | |
1L1DdeLL | |
1L1Dd3LL | |
1L1DdELL | |
1L1DDeLL |