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
# Make sure Debian is the latest and greatest | |
apt-get update | |
apt-get upgrade | |
apt-get dist-upgrade | |
# Install X, LXDE, VPN programs | |
apt-get install xorg lxde-core tightvncserver | |
# Start VNC to create config file |
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/bash | |
# A simple cURL OAuth2 authenticator | |
# depends on Python's built-in json module to prettify output | |
# | |
# Usage: | |
# ./google-oauth2.sh create - authenticates a user | |
# ./google-oauth2.sh refresh <token> - gets a new token | |
# | |
# Set CLIENT_ID and CLIENT_SECRET and SCOPE |
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
String fonts = "--------------------------------------\n"; | |
List<String> fontFamilies = new List<String> (UIFont.FamilyNames); | |
fontFamilies.Sort (); | |
foreach (String familyName in fontFamilies) { | |
foreach (String fontName in UIFont.FontNamesForFamilyName (familyName)) { | |
fonts += familyName; | |
fonts += "\t"; | |
fonts += fontName; | |
fonts += "\n"; | |
} |
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
using System; | |
using System.Drawing; | |
using MonoTouch.UIKit; | |
using System.IO; | |
public static class UIImageHelper | |
{ | |
private static string tallMagic = "-568h@2x"; | |
public static UIImage FromBundle16x9(string path) |
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
using System.Collections.Generic; | |
using MonoTouch.Foundation; | |
using MonoTouch.ObjCRuntime; | |
using MonoTouch.UIKit; | |
namespace iOSLib | |
{ | |
public static class ViewExtensions | |
{ | |
static Dictionary<UIView, Dictionary<UISwipeGestureRecognizerDirection, SwipeClass>> |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
namespace ColorControl { | |
// The UIApplicationDelegate for the application. This class is responsible for launching the | |
// User Interface of the application, as well as listening (and optionally responding) to |
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 void sendTweet(string updateText) | |
{ | |
ACAccountStore account = new ACAccountStore(); | |
var accountType = account.FindAccountType(ACAccountType.Twitter); | |
account.RequestAccess(accountType,(granted,NSError)=> { | |
if(!granted) | |
return; | |
var arrayOfAccounts = account.FindAccounts(accountType); | |
if(arrayOfAccounts != null && arrayOfAccounts.Length == 0) |
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
/* ReaderJSController.originalArticleFinder(): */ | |
{ | |
"contentDocument": [object HTMLDocument], | |
"didSearchForArticleNode": true, | |
"article": [object Object], | |
"didSearchForPrependedArticleNode": true, | |
"prependedArticle": null, | |
"_cachedScrollY": 0, | |
"_cachedScrollX": 0, | |
"_elementsWithCachedBoundingRects": [object HTMLDivElement], |
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
using System; | |
using MonoTouch.UIKit; | |
using System.Drawing; | |
using MonoTouch.AudioToolbox; | |
namespace GoogleMusic | |
{ | |
public class LevelMeter : UIView | |
{ | |
public AudioQueueLevelMeterState[] AudioLevelState {get;set;} |
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
using System; | |
using System.Collections.Generic; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.IO; | |
public class StateManager | |
{ | |
public StateManager () | |
{ | |
} |