Skip to content

Instantly share code, notes, and snippets.

View kathgironpe's full-sized avatar

Katherine Giron Pe kathgironpe

View GitHub Profile
@kathgironpe
kathgironpe / selection_sort.rb
Created October 10, 2018 12:01 — forked from brianstorti/selection_sort.rb
Selection Sort in ruby
# Selection sort (very slow on large lists)
a = [9,8,6,1,2,5,4,3,9,50,12,11]
n = a.size - 1
n.times do |i|
index_min = i
(i + 1).upto(n) do |j|
index_min = j if a[j] < a[index_min]
@kathgironpe
kathgironpe / android_instructions_23.md
Created September 17, 2018 10:31 — forked from agrcrobles/android_instructions_29.md
Setup Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

@kathgironpe
kathgironpe / encoding-video.md
Created September 8, 2018 12:40 — forked from Vestride/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@kathgironpe
kathgironpe / unused_mac.md
Last active July 1, 2018 14:08
How to install Unused on Mac OS X

Using Homebrew

brew install haskell-stack

git clone git@github.com:joshuaclayton/unused.git

stack update
stack setup
@kathgironpe
kathgironpe / _config.yml
Created December 31, 2017 01:32 — forked from ravasthi/_config.yml
Multiple authors on Jekyll
authors:
hanzou:
name: Hanzou Hattori
display_name: Hanzou
gravatar: c66919cb194f96c696c1da0c47354a6a
email: hanzou@company.com
web: http://company.com
twitter: company
github: hhattori
jorgen:
@kathgironpe
kathgironpe / on-jsx.markdown
Created October 18, 2017 04:28 — forked from chantastic/on-jsx.markdown
JSX, a year in

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't

@kathgironpe
kathgironpe / upgrade.md
Created May 7, 2017 02:19 — forked from chrismccord/upgrade.md
Phoenix 1.2.x to 1.3.0 Upgrade Instructions

If you want a run-down of the 1.3 changes and the design decisions behidn those changes, check out the LonestarElixir Phoenix 1.3 keynote: https://www.youtube.com/watch?v=tMO28ar0lW8

To use the new phx.new project generator, you can install the archive with the following command:

$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez

Bump your phoenix dep

Phoenix v1.3.0 is a backwards compatible release with v1.2.x. To upgrade your existing 1.2.x project, simply bump your phoenix dependency in mix.exs:

Keybase proof

I hereby claim:

  • I am katgironpe on github.
  • I am katgironpe (https://keybase.io/katgironpe) on keybase.
  • I have a public key ASDBZLwdrNqhnbcezLfh_TG4TH0XagNwU1Az8Um-asC39Qo

To claim this, I am signing this object:

@kathgironpe
kathgironpe / pg.txt
Last active February 9, 2017 02:33 — forked from peymano/gist:2047968
Restore from a binary Postgres dump file
pg_restore --clean --no-acl --no-owner -d <database> -U <user> <filename.dump>
-- Enable PostGIS (includes raster)
CREATE EXTENSION postgis;
-- Enable Topology
CREATE EXTENSION postgis_topology;
-- Enable PostGIS Advanced 3D
-- and other geoprocessing algorithms
-- sfcgal not available with all distributions
CREATE EXTENSION postgis_sfcgal;
@kathgironpe
kathgironpe / Makefile
Last active December 26, 2016 23:58 — forked from h4cc/Makefile
Ubuntu 16.10 Yakkety Yak - Install Stuff
#
# Ubuntu 16.10 LTS (Yakkety Yak)
#
# Basic packages i usually install.
#
# Upgraded Script from 16.04: https://gist.github.com/h4cc/fe48ed9d85bfff3008704919062f5c9b
#
.PHONY: all preparations libs update upgrade fonts python ruby virtualbox vagrant graphics darktable networking mailcatcher google_chrome slack archives media pandoc system harddisk docker ansible filesystem nodejs apache2 mysql mysql-workbench postgres memcached mongodb tools encfs_manager nautilus httpie esl_repo erlang elixir openoffice x230_fingerprint google-cloud-print-install google-cloud-print-setup teamviewer xmind presentation