Skip to content

Instantly share code, notes, and snippets.

View mrbarbasa's full-sized avatar

Marifel Barbasa mrbarbasa

View GitHub Profile
@jaywon
jaywon / Dockerfile
Last active April 9, 2018 11:28
Files used in Docker demo here: https://youtu.be/MncPj2ZHnD0
FROM alpine:latest
COPY writer.sh .
CMD ["/writer.sh"]
@gaearon
gaearon / slim-redux.js
Last active December 27, 2025 19:29
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
@theRemix
theRemix / LiveReload Notes.md
Created November 29, 2014 23:17
LiveReload Notes (gulp, sass, foundation, livereload, via express)

Starting up a project with /app/public for final output files AND using Foundation


In your project root

Copy over relevant assets into a ./Layouts directory.

Make this file to ignore installable components.
.gitignore

@theRemix
theRemix / Multidimensional Arrays.md
Last active August 29, 2015 14:08
Multidimensional Arrays

Multidimensional Arrays

Setup

  • create a project in your DevLeague directory named "MultiDimensional Arrays"
  • initialize a git repository in this project
  • create a .gitignore file and add node_modules as an ignored path
  • initialize an npm project named "MultiDimensional Arrays"
  • install any dependencies you need to run tests with mocha and chai
  • create a subdirectory called test/
@sebmarkbage
sebmarkbage / react-terminology.md
Last active December 26, 2025 06:20
React (Virtual) DOM Terminology
@ericallam
ericallam / gist:1019446
Created June 10, 2011 18:35
How to log all queries for a PostgreSQL homebrew install on OS X

Open the postgresql.conf config file:

$> mate /usr/local/var/postgres/postgresql.conf

Uncomment the line with 'log_destination' and set it to 'syslog'

log_destination = 'syslog'

Open the syslog config: