<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
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 |
#!/bin/bash | |
# | |
# Author: orefalo | |
# @see http://stackoverflow.com/questions/8730514/chaining-git-hooks#8734391 | |
# | |
# Changes: | |
# [email protected]: Add [0-9] to file glob to exclude .sample files | |
# | |
# Usage: | |
# |
#!/bin/bash | |
# | |
# Example of how to parse short/long options with 'getopt' | |
# | |
OPTS=`getopt -o vhns: --long verbose,dry-run,help,stack-size: -n 'parse-options' -- "$@"` | |
if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi | |
echo "$OPTS" |
<?php | |
// app/config/assets_version.php | |
$container->loadFromExtension('framework', array( | |
'templating' => array( | |
'engines' => array('twig'), | |
'assets_version' => exec('git rev-parse --short HEAD'), | |
), | |
)); |
<?php | |
namespace Ormigo\Tests; | |
use Symfony\Component\Templating\EngineInterface; | |
use Symfony\Component\HttpFoundation\Response; | |
class JasmineHandler | |
{ | |
protected $templating; |
# /etc/bash_completion.d/phing | |
_phing () { | |
local cur prev | |
COMPREPLY=() | |
buildfile=build.xml | |
_get_comp_words_by_ref cur prev | |
[ ! -f $buildfile ] && return 0 |
#!/usr/bin/env python | |
""" | |
How to use it: | |
1. Just `kill -2 PROCESS_ID` or `kill -15 PROCESS_ID` , The Tornado Web Server Will shutdown after process all the request. | |
2. When you run it behind Nginx, it can graceful reboot your production server. | |
3. Nice Print in http://weibo.com/1682780325/zgkb7g8k7 | |
""" |
/** Global override to make all AJAX calls as POST type */ | |
Backbone.ajax = function() { | |
var args = Array.prototype.slice.call(arguments, 0); | |
return Backbone.$.ajax.apply(Backbone.$, _.extend(args, {type: 'POST'})); | |
}; | |
/** Manual override per call */ | |
Collection.fetch({data: {id: 34}, type: 'POST'}); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.