Skip to content

Instantly share code, notes, and snippets.

View farleyta's full-sized avatar
🧜‍♂️

Tim Farley farleyta

🧜‍♂️
View GitHub Profile
@l1x
l1x / merge.parquet.py
Last active March 2, 2024 05:16
Merging Parquet files with Python
import os
import pyarrow.parquet as pq
#
# Warning!!!
# Suffers from the same problem as the parquet-tools merge function
#
#parquet-tools merge:
#Merges multiple Parquet files into one. The command doesn't merge row groups,
#just places one after the other. When used to merge many small files, the
@ulfsauer0815
ulfsauer0815 / github-colorizer.js
Created April 7, 2017 07:41
Colorizing GitHub pull requests by age
// ==UserScript==
// @name GitHub Pull Request Colorizer
// @namespace http://github.com/UlfS
// @version 0.1
// @description Colorizes the pull requests depending on age (green=new, red=older than 10 days)
// @author UlfS
// @match https://github.com/*pulls*
// include /https?://github.com/([^/]+/[^/]+/)?pulls(&.*)?/
// @grant none
// ==/UserScript==
anonymous
anonymous / index.html
Created May 16, 2016 01:44
MPJeez // source http://jsbin.com/wevodu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>MPJeez</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.min.js"></script>
<script src="https://fb.me/react-15.0.2.min.js"></script>
<script src="https://fb.me/react-dom-15.0.2.min.js"></script>
@paulirish
paulirish / what-forces-layout.md
Last active July 23, 2024 15:12
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@farleyta
farleyta / _base.scss
Last active December 10, 2015 19:08
A starter responsive layout for SUSY and Compass. Mobile first, with breakpoints at 48em (768px by default) and 60em (960px default).
// Default mobile-first grid setup
$total-columns : 4; // a 4-column fluid grid for anything less than tablet (<48em)
$column-width : 20%; // each column is 4em wide
$gutter-width : 3%; // 1em gutters between columns
$grid-padding : $gutter-width; // grid-padding equal to gutters
$tablet-columns : 10; // 10-column fluid grid for tablets - desktop (48em - <60em)
$tablet-width : 48em; // 48em = 768px by default
$tablet : $tablet-width $tablet-columns; // Shorthand for tablet breakpoint
@nuxlli
nuxlli / sublime_text_2_useful_shortcuts.md
Created September 9, 2011 18:51 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@redoPop
redoPop / .gitignore
Created June 18, 2010 22:08
Template .gitignore file for WordPress projects
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your