Skip to content

Instantly share code, notes, and snippets.

View ethanmick's full-sized avatar
🐺
Hello!

Ethan Mick ethanmick

🐺
Hello!
View GitHub Profile
@ethanmick
ethanmick / gist:4560096
Created January 17, 2013 21:47
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.Testing"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17"/>
<!-- GCM connects to Google Services. -->
<uses-permission android:name="android.permission.INTERNET" />
@ethanmick
ethanmick / gist:4454310
Created January 4, 2013 17:19
My .emacs file on OS X
(require 'ido)
; ido settings
(setq ido-enable-flex-matching t)
(setq ido-everywhere t)
(ido-mode 1)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
@ethanmick
ethanmick / gist:4287692
Created December 14, 2012 18:59
Link social account using iOS Framework for CloudMine
// In MyLoginViewController.m
- (IBAction)loginWithSocial {
[_user loginWithSocialNetwork:CMSocialNetworkGithub viewController:self params:@{@"scope" : @"gist"} callback:^(CMUserAccountResult resultCode, NSArray *messages) {
if (resultCode == CMUserAccountLoginSucceeded) {
NSLog(@"We have successfully logged in!");
}
}];
}
@ethanmick
ethanmick / gist:4287674
Created December 14, 2012 18:56
Login socially with the CloudMine iOS framework.
// In MyLoginViewController.m
- (IBAction)loginWithSocial {
// Don't need username/password because we are logging in socially.
CMUser *myNewUser = [[CMUser alloc] init];
[myNewUser loginWithSocialNetwork:CMSocialNetworkTwitter viewController:self params:nil callback:^(CMUserAccountResult resultCode, NSArray *messages) {
if (resultCode == CMUserAccountLoginSucceeded) {
@ethanmick
ethanmick / file1.txt
Created December 7, 2012 21:43
Ethan Testing
String file contents
751A4522-EAF3-46B3-920E-07A33D52F01D - String file contents
4EDF5248-CCF8-4040-B8B2-E83C98B52499 - String file contents
446B26F2-88BE-450C-8FAC-17BF91AE6B93 - String file contents
524CF814-EB6C-458B-95CE-D0A8EFC77402 - String file contents
B58E12CE-38C5-44BC-9423-6B05E3545D43 - String file contents