Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

JavaScript Developer Setup

A hopefully helpful guide to getting a basic setup on your mac for JS and React Native development.

Note: This is a work in progress, I'll keep adding/updating

General Setup

  • Homebrew - We'll need this to install other things below
    • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    • https://brew.sh/
  • Git
// Original code by Homer Chen
// https://github.com/homerchen19/use-undo
// Same as original but using useState instead of useReducer
import { useState, useCallback } from 'react';
const initialState = {
past: [],
present: null,
@rosario
rosario / composing-software.md
Created January 17, 2018 16:13 — forked from Geoff-Ford/composing-software.md
Eric Elliott's Composing Software Series
@rosario
rosario / config.ru
Created December 5, 2013 15:43
Config file
require './site'
run Sinatra::Application
@rosario
rosario / site.rb
Created December 5, 2013 15:42
Site file, using the index.erb
require 'sinatra'
get '/' do
erb :index
end
@rosario
rosario / style.css
Created December 5, 2013 15:42
Style file
body {
margin: 0;
}
h1, p {
font-family: Georgia, Arial, cursive;
}
h1 {
font-size:50px;
margin-top:0em;
margin-bottom:0.8em;
@rosario
rosario / index.erb
Last active December 30, 2015 09:09
Index file
<!doctype html>
<html>
<head>
<title> Profile page Example </title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="header">
<img src="http://placekitten.com/250/250" />
<p> Hello, this the page of </p>
@rosario
rosario / site.rb
Created December 5, 2013 15:40
Site file, version 1
require 'sinatra'
get '/' do
"I'm alive!"
end
@rosario
rosario / Gemfile
Created December 5, 2013 15:39
Gemfile
source 'https://rubygems.org'
gem 'sinatra'
@rosario
rosario / nomefile.md
Created November 5, 2012 09:41
Descrizione della gist
layout title image excerpt
post
Chatting on Twitter (1/2)
/images/screenshot.png
Can we embed a chat widget on <strong>Twitter</strong>? Yes, with few tricks and <strong>Pusher</strong> we can create a widget and chat with our Twitter friends.

Can we embed a chat widget on Twitter? Yes, with few tricks and Pusher we can create a widget and chat with our Twitter friends.