Skip to content

Instantly share code, notes, and snippets.

View cggaurav's full-sized avatar
🏠
Working from home

Gaurav cggaurav

🏠
Working from home
View GitHub Profile
@cggaurav
cggaurav / cloudapp-export.rb
Last active October 9, 2017 00:10 — forked from adamcooke/cloudapp-export.rb
Export all your drops from CloudApp using this quick Ruby script
#!/usr/bin/env ruby
# A quick script to download all your files from CloudApp.
# To run this just run the script passing your e-mail & password
# to the script, for example:
#
# gem install cloudapp_api
# ruby cloudapp-export.rb adam@atechmedia.com mypassword
#
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "ec2:*",
"Effect": "Allow",
"Resource": "*"
},
{
"Effect": "Allow",
@cggaurav
cggaurav / trending.csv
Created June 8, 2017 15:32
Trending tags as of 8th May 2017
@cggaurav
cggaurav / promises-faq.md
Created May 18, 2017 23:45 — forked from joepie91/promises-faq.md
The Promises FAQ - addressing the most common questions and misconceptions about Promises.
@cggaurav
cggaurav / updates.txt
Created April 28, 2017 17:26
Updates For Flightmode Algorithm
1. Can we somehow add a flag for the article picked? or repeat the information for it in the cell where it is picked?
2. For channels multiplier, can we show which other channels it appeared in where applicable?
3. User ratings for the article in the file (Coming)
4. See user preference (user category(primary) + user channel(secondary) + attention span()) in the beginning of the user file.
@cggaurav
cggaurav / spanish.txt
Created April 10, 2017 19:56
Spanish Class Today
Suena bien = sounds good
crecer = growing (tu nariz esta creciendo, como pinocho)
ejércitos = army
caminata = walking tour
aumentar de peso = to gain weight
fuerza, fortalecer = strenghh
For weekdays, its "el" not "en ", Focus on "M" vs "F", "H" doesn't sound!!
truenos y relámpagos = thunder & lightning
tocar = to touch, to play, to knock the the door
Por supuesto = of course!
@cggaurav
cggaurav / server.js
Created April 7, 2017 16:25
Gisting!
// ---------------------------------
// Redis
// ------------------------------
import redis from 'redis'
import redisConfig from '../config/redis-config'
const redisArgs = [redisConfig.redis.port, redisConfig.redis.hostname, {auth_pass: redisConfig.redis.password}]
const r = redis.createClient(...redisArgs)
@cggaurav
cggaurav / .editorconfig
Created April 1, 2017 22:17
EditorConfig
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@cggaurav
cggaurav / .estlintrc
Last active February 27, 2017 14:54
eslint
{
"extends": [
"eslint:recommended"
],
"parser": "babel-eslint",
"env": {
"es6": true,
"node": true
},
"ecmaFeatures": {
@cggaurav
cggaurav / Describir
Created February 22, 2017 22:01
Describing a video
https://www.youtube.com/watch?v=dUH5RnBESgc&feature=youtu.be
Presente
está nevando, la muñeca está caminando, a lo largo de la calle, cuando ella está caminando, ella mira una pizarra, escribe su nombre después ella da la vuelta, y ve una tienda con muchos muñecos, ella se sorprende cuando mira una muñeca que se parece a ella, después ella entra en la tienda ( primero la tienda está cereada y ella trata de abrir la puerta) de algú modo ella entra en la tienda y toca el muñeco y queda atrapado en el muñeco!
Pasado
Estuvo nevando, la muñeca estuvo caminando a lo largo de la calle, cuando ella estuvo caminando, ella miro una pizarra, despues escribió su nombre, ella dio la vuelta y vio una tienda con muchos muñecos, ella se sorprendio cuando miró una muñeca que se pareció a ella, después ella entró en la tienda ( primero la tienda estuvo cerada y ella trató de abrir la puerta). de algun modo ella entró en la tienda y tocó el muñeco.Desafortunadamente, ella quedó atrapada en el muñeco!
Irregalar verbos no nec