Skip to content

Instantly share code, notes, and snippets.

View flexbox's full-sized avatar

David Leuliette flexbox

View GitHub Profile
@knowbody
knowbody / RNfontWeights.js
Created July 14, 2016 13:42
React Native Font Weight Cheatsheet iOS
{ fontWeight: '100' }, // Thin
{ fontWeight: '200' }, // Ultra Light
{ fontWeight: '300' }, // Light
{ fontWeight: '400' }, // Regular
{ fontWeight: '500' }, // Medium
{ fontWeight: '600' }, // Semibold
{ fontWeight: '700' }, // Bold
{ fontWeight: '800' }, // Heavy
{ fontWeight: '900' }, // Black

Pitchfork’s Product team is hiring. We're looking for a sharp, creative front-end developer excited about pushing hard on UI and UX across all platforms. Your work will be seen daily by millions around the world, and you'll be a part of a small team of designers and developers whose work has been praised for redefining online music journalism and influencing the medium itself.

Our work environment is fast-paced and intimate: we all work very closely, and everyone has say in new ideas, features, and approach. You should be someone constantly learning about new technology and keenly aware of its practical applications and limitations. It should go without saying that you’re willing to take on any task, regardless of size or glory. Everyone here wears many hats, and no job is too small for anyone. Strong communication skills are a must, as is the desire to teach as much as you learn. A love for music doesn’t hurt, either.

Responsibilities

As part of Pitchfork’s Product team, you will help us

  • consistent
@AttilaGal
AttilaGal / renamer.js
Last active April 19, 2022 19:28
rename all js to ts recursively
/*
This is a helper script that can be used to recursively rename all
JavaScript files within a given directory into TypeScript files.
call:
node renamer <directory>
*/
var fs = require('fs');
var path = require('path');
var ANSI_GREEN = '\x1b[32m';
@martindebrunne
martindebrunne / amazon_service.rb
Last active May 3, 2017 17:21
Get a s3 signature for Ruby (used in ROR here) and how to set an image uploader using s3
class AmazonService
class << self
def get_s3_upload_key(user_folder, project_folder)
bucket = < TO FILL >
access_key = < TO FILL >
secret_key = < TO FILL >
env = ENV["S3_ENV"]
key = "#{env}/#{user_folder}/#{project_folder}/"
expiration = 1.days.from_now.utc.strftime('%Y-%m-%dT%H:%M:%S.000Z')
max_filesize = 16.megabytes
new MutationObserver(mutation => {
for (let lemming of document.querySelectorAll('img[alt="lemming tombant"]')) {
lemming.dispatchEvent(new Event('mouseover', { bubbles: true }));
}
}).observe(document, {childList: true, subtree: true});
@lovekaizen
lovekaizen / cloudSettings
Last active November 9, 2018 16:23
VSCode Settings
{"lastUpload":"2018-11-09T16:23:36.439Z","extensionVersion":"v3.2.0"}
@nightire
nightire / debug_ember_app_in_vscode.md
Created May 17, 2018 11:21
How to debug an ember application with VS Code

Step 1: Launch Google Chrome with Remote Debugging support

  • windows: <path to chrome>/chrome.exe --remote-debugging-port=9222
  • macOS: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
  • linux: google-chrome --remote-debugging-port=9222

Step 2: Install "Debugger for Chrome" extension

Step 3: Setup your application

MobX - The Journey — Michel Weststrate

MobX [mob-ex] – reactive updates via subscriptions.

How to run an open-source library

  • people do not inspect your source code seriously
  • people are not inspired by your ideas and solutions as you are
  • project without a critical mass of users does not look very attractive
@horacioh
horacioh / gatsby-config.js
Created November 20, 2019 21:59
Gatsby config: PostCSS, Tailwind, Emotion, Prismic, Google Analytics, Manifest & Offline
/* eslint-disable jsx-a11y/rule-name */
const path = require("path")
require("dotenv").config({
path: `../.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
import React from "react";
import { Link } from "react-router-dom";
export function createResource(getPromise) {
let cache = {};
let inflight = {};
let errors = {};
function load(key) {
inflight[key] = getPromise(key)