Skip to content

Instantly share code, notes, and snippets.

View gustin's full-sized avatar
🦁
Happy

gustin gustin

🦁
Happy
View GitHub Profile

Unplug, Recharge and Code

On April 29th, 2011 a weekend long Code Retreat will be held in [Floyd, Virginia] (http://www.visitfloyd.org/). Nestled in the Blue Ridge Mountains of Virginia, Floyd is a small mountain town with class. The weekend will be a retreat for programmers that want to learn from one another.

The idea for code retreats were spawned at the 2009 Codemash Conference by Patrick Welsh, Nayan Hajratwala, Gary Bernhardt and Corey Haines. The idea was to develop a repeatable, day-long event that was focused on practicing the fundamentals of software development. The first event was held in Ann Arbor, Michigan.

The full benefits of a code retreat come clear through the course of a whole day, starting with a session, or two, of understanding the problem domain. The rest of the day is spent pushing the limits, accepting that the 'normal' way of coding isn't enough, that the ideal is worth striving for. The format of the day is structured very speci

@gustin
gustin / fogus-essays.txt
Created December 4, 2012 05:35 — forked from daveray/fogus-essays.md
Fogus Essays
Links for essays ref'd in http://blog.fogus.me/2009/03/11/seven-books/
On the Criteria to Be Used in Decomposing Systems Into Modules – David Parnas
http://www.cs.umd.edu/class/spring2003/cmsc838p/Design/criteria.pdf
A Note On Distributed Computing – Jim Waldo, Geoff Wyant, Ann Wollrath, Sam Kendall
http://labs.oracle.com/techrep/1994/smli_tr-94-29.pdf
The Next 700 Programming Languages – P. J. Landin
http://www.thecorememory.com/Next_700.pdf
>>> > I think the default is we assume reasonably powerful general purpose
>>> > computers,
>>>
>>> Constrained devices are indeed hard to design for (and there are many
>>> dimensions of constraint - code size, memory, storage, battery, etc.). I
>>> wouldn't necessarily argue for supporting Class 0 devices (which
>>> according to RFC 7228 are "very constrained sensor-like motes"), but
>>> Class 2 devices (which are "fundamentally capable of supporting most of
@gustin
gustin / gist:3827192
Created October 3, 2012 14:25
Octave Cheat
% octave cheatsheet
% not equals(~=)
1 ~=2 % => 1
% change prompt
PS1('>> ');
% search path
setpath('~/some/path')
@gustin
gustin / rename.sh
Created April 10, 2019 01:08 — forked from nerdyworm/rename.sh
rename a phoenix project
#!/bin/bash
set -e
CURRENT_NAME="CurentName"
CURRENT_OTP="current_name"
NEW_NAME="NewName"
NEW_OTP="new_name"
@gustin
gustin / regexCheatsheet.js
Created January 15, 2019 14:39 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
Verifying my identity on Peepeth.com 0x3ab8e9aa277b3bd3a10713b3437b2cf2cd392bc4
@gustin
gustin / Elixir
Created June 28, 2017 14:36 — forked from ashleyconnor/Elixir
Elixir Socket Example
defmodule SocketPlayground do
def listen(port) do
listen(port, &handler/1)
end
def listen(port, handler) do
IO.puts "listen"
Socket.TCP.listen!(port, packet: :line)
|> accept(handler)
end

Keybase proof

I hereby claim:

  • I am gustin on github.
  • I am gustin (https://keybase.io/gustin) on keybase.
  • I have a public key ASA73upxdy2mPTZ0p1i580Tf1TRr59bVebi_YBbk4_tGvAo

To claim this, I am signing this object:

@gustin
gustin / gist:02160d959a39ed4cf6f9d200115bc35b
Created December 19, 2016 16:57 — forked from alex-zige/gist:5795358
Rails Rspec API Testing Notes

Rails Rspec APIs Testing Notes

Folders Structure

  spec
  |--- apis #do not put into controllers folder. 
        |--- your_api_test_spec.rb  
  |--- controllers
  |--- models
  |--- factories
 |--- views