This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["ctrl+q"], "command": "exit" }, | |
{ "keys": ["ctrl+shift+n"], "command": "new_window" }, | |
{ "keys": ["ctrl+shift+w"], "command": "close_window" }, | |
{ "keys": ["ctrl+o"], "command": "prompt_open_file" }, | |
{ "keys": ["ctrl+shift+t"], "command": "reopen_last_file" }, | |
{ "keys": ["alt+o"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} }, | |
{ "keys": ["ctrl+n"], "command": "new_file" }, | |
{ "keys": ["ctrl+s"], "command": "save" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('application', []).directive("selectMenu", [ | |
'$log', function(console) { | |
return { | |
scope: true, | |
link: function(scope, element, attrs, ctrl) { | |
$(element).selectmenu({ | |
maxHeight: 150, | |
change: function(e, object) { | |
return alert(object.value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ELEENDO => Que lindo | |
MARAIVIA, MIRAVO, EHMARAIVEI, MIRIVI=> mira vos | |
EHPITY => Eh, Pity | |
GRACIAVO=> Gracias a vos | |
VAMAA => Vamos!! | |
LITO,LETO => Listo! | |
SIUINDISNY => See you in Disney |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install mysql mysql-client php5 apache2 curl wget git tilda tmux php5-curl php5-gd php5-mcrypt parcellite zsh | |
#http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2 | |
#https://www.google.com/chrome/browser/ <-- Chrome browser (Firefox comes by default) | |
#http://ohmyz.sh/ | |
# how to install node | |
sudo apt-get install python g++ make checkinstall fakeroot | |
src=$(mktemp -d) && cd $src | |
wget -N http://nodejs.org/dist/node-latest.tar.gz | |
tar xzvf node-latest.tar.gz && cd node-v* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT c.*, | |
(SELECT cm.msg | |
FROM conversation_messages AS cm | |
WHERE cm.conversation_id = c.id | |
ORDER BY cm.created_at DESC | |
LIMIT 1) AS last_msg | |
FROM conversations c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// each var is a collection | |
var ticketStatuses = [ | |
{ 'id': ObjectId(), 'name': 'Pending', 'alias': 'pending' }, | |
{ 'id': ObjectId(), 'name': 'In Progress', 'alias': 'in-progress' }, | |
{ 'id': ObjectId(), 'name': 'Done', 'alias': 'Done' }, | |
]; | |
var tickets = [ | |
{ | |
'id': ObjectId(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function droplr($droplrUrl = 'http://d.pr/i/YBbX') { | |
$data = file_get_contents($droplrUrl); | |
$result = array(); | |
$dom = new DOMDocument; | |
$dom->loadHTML($data); | |
foreach ($dom->getElementsByTagName('img') as $node) { | |
$result[] = $dom->saveHtml($node); | |
} | |
$scrapedImage = array_pop($result); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<AllowedMethod>POST</AllowedMethod> | |
<AllowedMethod>PUT</AllowedMethod> | |
<AllowedHeader>*</AllowedHeader> | |
</CORSRule> | |
</CORSConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires https://www.npmjs.org/package/s3-policy and https://www.npmjs.org/package/node-uuid | |
var config = require('env/' + process.env.NODE_ENV), | |
policy = require('s3-policy'), | |
uuid = require('node-uuid'); | |
// SETUP S3 | |
const AWS_ACCESS_KEY = config.s3.accessKey; | |
const AWS_SECRET_KEY = config.s3.secret; | |
const S3_BUCKET = config.s3.bucket; |
OlderNewer