Skip to content

Instantly share code, notes, and snippets.

View indieocean's full-sized avatar

Michael D. Irizarry indieocean

View GitHub Profile
@indieocean
indieocean / react-cognito-auth-js.js
Created August 22, 2018 13:15 — forked from gabeweaver/react-cognito-auth-js.js
React + Cognito User Pools + Cognito Identity JS Example
/*
This example was built using standard create-react-app out of the box with no modifications or ejections
to the underlying scripts.
In this example, i'm using Google as a social provider configured within the Cognito User Pool.
Each step also represents a file, so you can see how I've chosen to organize stuff...you can do it however
you'd like so long as you follow the basic flow (which may or may not be the official way....but its what I found that works.
The docs are pretty horrible)
@indieocean
indieocean / ngrxintro.md
Created August 8, 2017 11:15 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

* Connect via Telnet to Tivo
launch "goto web:http://192.168.47.75:9091/?tivo_browser_args=--clear-cache"
launch "goto web:http://192.168.47.75:9091/?tivo_browser_args='--dragonfly=192.168.47.75:7002 -s --clear-cache'"
find . -type f -exec chmod 644 {} \; // 644 permission for files
find . -type d -exec chmod 755 {} \; // 755 permission for directory
find ./var -type d -exec chmod 777 {} \; // 777 permission for var folder
find ./pub/media -type d -exec chmod 777 {} \;
find ./pub/static -type d -exec chmod 777 {} \;
Remove Empty Lines in Atom
^(?:[\t ]*(?:\r?\n|\r))+
@indieocean
indieocean / open-w-atom.reg
Last active June 9, 2016 15:01 — forked from kyle-ilantzis/open-w-atom.reg
Adds 'Open in Atom' to context menu in Windows Explorer.
Windows Registry Editor Version 5.00
;
; Adds 'Open in Atom' to context menu (when you right click) in Windows Explorer.
;
; Based on https://github.com/Zren/atom-windows-context-menu. It didn't work
; https://github.com/Zren/atom-windows-context-menu/issues/1.
;
; Save this file to disk with a .reg extension. Replace C:\\Program Files (x86)\\Atom\\atom.exe with
; the path to the atom executable on your machine.

Deploying Yeoman apps to Heroku

Prerequisites

This assumes you already have a Yeoman app and are ready for publishing

Build for Production

Create production directory & assets

@indieocean
indieocean / gist:8985181
Created February 13, 2014 22:23
Update to support v1.1 of Twitter API
/*
* Titanium OAuth Client
*
* Copyright 2010, Social Vitamin, Inc.
* Licensed under the MIT
* Copyright (c) 2010 Social Vitamin, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
@indieocean
indieocean / fileserver.js
Created May 3, 2011 23:41 — forked from marekjelen/fileserver.js
Pretty simple file server on Node.js
var fs = require("fs");
var net = require("net");
var basePath = "/Users/marek/test";
var server = net.createServer(function(client) {
var buffer = "";
var stream = null;
var size = 0;
var streamed = 0;
client.addListener("data", function(data) {