crx are src-file of Chrome Extension, those name like this;
novell-moonlight-3.99.0.3-i586.crx
find out *.crx URL and download
for Google Web Store
//Filesystem (checkDir, createDir, checkFile, creatFile, removeFile, writeFile, readeFile) | |
.factory('FileService', function($q) { | |
return { | |
checkDir: function (dir) { | |
var deferred = $q.defer(); | |
getFilesystem().then( | |
function(filesystem) { | |
filesystem.root.getDirectory(dir, {create: false}, |
<div class='yui3-g'> | |
<div class="yui3-u-1-3">...</div> | |
<div class="yui3-u-1-3">...</div> | |
<div class="yui3-u-1-3">...</div> | |
</div> |
@RemoteAction | |
public static Response Query(QueryRequest qr) { | |
Response resp = new Response(); | |
//Enforce a limit on the number of rows requested. | |
final integer QUERY_LIMIT = 500; | |
if (qr.start >= QUERY_LIMIT) { | |
resp.success = false; | |
resp.errorMessage = 'Maximum number of records (' + String.valueOf(QUERY_LIMIT) + ') exceeded!'; |
private static List < Lead > getAllLeads() { | |
return [SELECT | |
FirstName, LastName, Company, Title, Phone, MobilePhone, Email, Status | |
FROM Lead LIMIT 50]; | |
} |
## Setup java | |
if [ `uname -m` == 'x86_64' ]; then | |
PATH="/usr/lib64/jvm/java-7-oracle/jre/bin/" | |
JAVA_HOME="/usr/lib64/jvm/java-7-oracle/" | |
else | |
PATH="/usr/lib/jvm/java-7-oracle/jre/bin/" | |
JAVA_HOME="/usr/lib/jvm/java-7-oracle/" | |
fi |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
license: gpl-3.0 | |
redirect: https://observablehq.com/@d3/zoomable-icicle |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |