- ruby1.9.3-p327
- rails3.2
- unicorn 4.5
- percona Mysql5.5
- memcache14.14
- redis2.6
33 app servers, 1172 unicorn workers, 5 job servers, 370 job workers
//make a function to hide options as they are passed into it. | |
var skip1 = function(k){ | |
$('.nesty-panel').on('DOMNodeInserted', function(e){ | |
$(this).children('ul').children(k).hide(); | |
}); | |
} | |
// call the function with the option value with a # in front | |
skip1('#sss_a_1') | |
//make a function to show the option |
# This example relies on you having installed PyJWT, `sudo easy_install PyJWT` - you can | |
# read more about this in the GitHub repository https://github.com/progrium/pyjwt | |
from flask import Flask, request, redirect | |
import time | |
import uuid | |
import jwt | |
# insert token here | |
app.config['SHARED_KEY'] = '' |
//place these right after return | |
currAttempt : 0, | |
MAX_ATTEMPTS : 20, | |
events: { | |
'requiredProperties.ready': 'whatever' | |
} | |
// | |
init: function() { |
1. In feedback tab settings open advanced customizations | |
2. Change line 9 to the new text you want to show instead of the default text | |
3. paste the code below into the "Custom CSS" field | |
</style> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" charset="UTF-8"></script> | |
<script type="text/javascript"> | |
setTimeout(function(){ | |
$("a.preferChat span").html("New text here"); | |
}, 200); |
(function() { | |
var scope = {}; | |
with(scope) { | |
return { | |
events: { | |
'app.activated':'doSomething', | |
'click header': 'check' |
// Array Iteration: | |
myArray = [ 'foo' ]; | |
myArray.forEach(function(x) { console.log(x); }); | |
// prints "foo" | |
// Object Keys: | |
myObject = { foo: 'bar', baz: 'quux' }; | |
Object.keys(myObject); // [ "foo", "baz" ] | |
// Object Iteration Helper (context is optional) |
$j.ajax( | |
{ | |
type: 'POST', | |
url: '/proxy/direct', | |
data: | |
{ | |
url: "http://www.outbound.com", | |
body: $j.param({a: "bar", b: "buz"}), | |
contenttype: "application/x-www-form-urlencoded" | |
} |
Here are the steps to install node, npm and express on Amazon 32 bit Linux AMI: | |
sudo yum install gcc-c++ | |
sudo yum install openssl-devel | |
wget http://nodejs.org/dist/node-v0.4.2.tar.gz (Pick the stable version available) | |
tar -zxvf node-v0.4.2.tar.gz | |
cd node-v0.4.2 | |
export JOBS=2 | |
./configure | |
make |
// The following goes in a Javascript widget: | |
(function() { | |
// fetch parameters from the URL: | |
var queryParameters = jQuery.queryParameters(); | |
// set field values: | |
jQuery('#some_field_id').val(queryParameters['field_name']); | |
})(); |