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
private HttpClient client; | |
public HttpModule() { | |
client = new DefaultHttpClient(); | |
} | |
public void executePost() { | |
HttpPost post = new HttpPost(APIConfiguration.getURL(Protocol.HTTPS, "user")); | |
Console.log(post.getURI()); | |
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
find . -name .svn -print0 | xargs -0 rm -rf |
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
--- Manifest --- | |
<activity android:name=".URLScheme"> | |
<intent-filter> | |
<action android:name="android.intent.action.VIEW" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<category android:name="android.intent.category.BROWSABLE" /> | |
<data | |
android:scheme="http" | |
android:host="www.a_url.com" | |
android:pathPrefix="/a_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
#!/usr/bin/env node | |
var express = require('/usr/local/lib/node_modules/express'); | |
var app = express.createServer(); | |
// get the dir from the command line | |
const DIR = process.argv[2] || __dirname; | |
const PORT = process.argv[3] || 4242; | |
// a little bit of configuration... | |
app.configure(function() { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape android:shape="rectangle"> | |
<solid | |
android:color="#fff" /> | |
<padding | |
android:top="10dip" | |
android:right="10dip" | |
android:bottom="10dip" |
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
/** | |
* Optional params pattern. | |
* Merge a user defined object with a default one. | |
*/ | |
setOptions: function(defaults, options) { | |
/* Force the obj param to be an object literal */ | |
if (typeof defaults !== 'object') defaults = {}; | |
if (typeof options !== 'object') options = {}; | |
/* |
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
fs = require 'fs' | |
path = 'some_path.js' | |
fs.readFile path, 'utf-8', (err, data) -> | |
data.split('\n').forEach (line) -> | |
if line.indexOf('*') != -1 | |
line = clean line | |
console.log line if line != '' | |
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
# Set the save dialog to be in extended mode by default | |
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
# Set the iCloud-using apps to not save to iCloud by default | |
# Courtesy of @room34, http://blog.room34.com/archives/5098 | |
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false | |
# Open a new document in TextEdit (& other iCloud-backed app) directly | |
# instead of presenting the document picker. | |
defaults write -g NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false |
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
#region Nested | |
#endregion | |
#region Static | |
#endregion | |
#region Constants | |
#endregion | |
#region Members |
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
#region Members | |
#endregion | |
#region Constructors | |
#endregion | |
#region Methods | |
#endregion | |
#region Properties |
OlderNewer