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
#!/bin/sh -e | |
# A simple script to keep a tidy ~/code directory organized by owner & then repo | |
# When the script is done, just hit command-v to switch into the directory | |
# (Github and Mac only. Sorry, openness!) | |
# | |
# Usage: | |
# gloan <org>/<repo> | |
# Or: | |
# gloan <org> <repo> |
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
/* DeviceUID.h | |
#import <Foundation/Foundation.h> | |
@interface DeviceUID : NSObject | |
+ (NSString *)uid; | |
@end | |
*/ | |
// Device.m |
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
public class DistinguishedName | |
{ | |
/// <summary> | |
/// Represents a name/value pair within a distinguished name, including the index of the part. | |
/// </summary> | |
public struct Part | |
{ | |
public Part(string name, string value, int index = -1) | |
: this() | |
{ |
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
/** | |
* Step 1: Download showdown.js, from here: https://raw.githubusercontent.com/showdownjs/showdown/master/compressed/showdown.js | |
* Step 2: Customize Design --> edit theme --> assets and upload it. | |
* Step 3: Add a script tag to your head using the url from asset page. | |
* Step 4: Add this to article-body section, Javascript (make sure you select JS), add it before | |
* Step 5: Create an article, switch to source view, add <PRE>- to the top of the file, | |
* then put your markdown and end it with a </PRE>. If you don't do this, when you save the wysiwg will screw | |
* your markdown with html markup. The - is just what i chose to put on the top line... it could be any character | |
* or string | |
* |
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
## | |
# Use this behind the scenes to migrate files from your filesystem to Amazon S3 | |
# %: rake paperclip_migration:migrate_to_s3 | |
## | |
namespace :attachments do | |
desc "migrate files from filesystem to s3" | |
task :migrate_to_s3 => :environment do | |
require 'aws/s3' |