Clone this Gist, copy in dropbox-android-sdk.jar
file from Dropbox SDK. Change version in POMs if you need it, then run mvn clean install
.
<dependency>
<artifactId>android-sdk</artifactId>
1.5
""" This script prepends a heading (read from header.txt) to all .cs files. | |
It searches for all the .cs files including *.designer.cs recursively | |
starting at the location of this script. | |
This script accepts two command line arguments: | |
-l, --list : lists all files that are going to be processed | |
-a, --append : Appends the contents of header.txt to each *.cs files | |
""" | |
# Author: Ashok Gelal | |
# Version: 0.0.1 | |
# And just for historical reason - this is my first Python script |
public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender) | |
{ | |
return true; | |
} |
void changeDir(char *path){ | |
if(path == '\0'){ | |
// get home path | |
uid_t id = getuid(); | |
struct passwd *pwd = getpwuid(id); | |
path = (pwd == NULL ? ) "." : pwd->pw_dir; | |
} | |
int status = chdir(path); | |
if(status == 0){ |
settitle () | |
{ | |
echo -ne "\033]0;${PWD/$HOME/~}\007" | |
} | |
PROMPT_COMMAND=settitle | |
export PROMPT_COMMAND |
/* | |
* ORIGINAL (JAVA) CODE LICENCE | |
* | |
* Copyright (C) 2010 Neil Davies | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
/// <summary> | |
/// Attempts to retrieve the real cause of a composition failure. | |
/// </summary> | |
/// <remarks> | |
/// Sometimes a MEF composition fails because an exception occurs in the ctor of a type we're trying to | |
/// create. Unfortunately, the CompositionException doesn't make that easily available, so we don't get | |
/// that info in haystack. This method tries to find that exception as that's really the only one we care | |
/// about if it exists. If it can't find it, it returns the original composition exception. | |
/// </remarks> | |
/// <param name="exception"></param> |
import Foundation | |
extension String | |
{ | |
var length: Int { | |
get { | |
return countElements(self) | |
} | |
} | |
Usage: wlctl [-a|i <adapter>] [-h] [-d|u|x] <command> [arguments] | |
-h this message and command descriptions | |
-h [cmd] command description for cmd | |
-a, -i adapter name or number | |
-d output format signed integer | |
-u output format unsigned integer | |
-x output format hexdecimal | |
ver get version information |
class LinkMonitor extends Monitor | |
{ | |
protected $table = 'monitors'; | |
protected $appends = ['raw_url']; | |
/** | |
* @return string | |
*/ | |
public function getRawUrlAttribute() |