This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
App.assets = { | |
// Returns an object containing all of asset pipeline's image paths. | |
// | |
// Sample: | |
// | |
// { | |
// avatars/missing_avatar.png: "/assets/avatars/missing_avatar.png" | |
// chosen-sprite.png: "/assets/chosen-sprite.png" | |
// circle_green.png: "/assets/circle_green.png" | |
// circle_orange.png: "/assets/circle_orange.png" |
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
# NEW WAY / EASY WAY | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.deb | |
sudo dpkg -i elasticsearch-0.90.7.deb |
CRM.module("DashboardApp.Show", function(Show, CRM, Backbone, Marionette, $, _){ | |
Show.Dashboard = Marionette.Layout.extend({ | |
className: "container-fluid", | |
template: "backbone/crm/templates/dashboard/show", | |
regions: { | |
contacts: "#contacts", | |
filter: "#filter" | |
}, | |
origHeight: null, |
// create an index with an analyzer "myindex" | |
curl -X PUT localhost:9200/myindex -d ' | |
{ | |
"settings" : {` | |
"index":{ | |
"number_of_replicas":0, | |
"number_of_shards":1, | |
"analysis":{ | |
"analyzer":{ | |
"first":{ |
CREATE OR REPLACE FUNCTION generate_object_id() RETURNS varchar AS $$ | |
DECLARE | |
time_component bigint; | |
machine_id int := FLOOR(random() * 16777215); | |
process_id int; | |
seq_id bigint := FLOOR(random() * 16777215); | |
result varchar:= ''; | |
BEGIN | |
SELECT FLOOR(EXTRACT(EPOCH FROM clock_timestamp())) INTO time_component; | |
SELECT pg_backend_pid() INTO process_id; |
I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.
So it might be really unintuitive at first but lambda functions have three states.