Skip to content

Instantly share code, notes, and snippets.

View GantMan's full-sized avatar
Being a Machine Learning beast

Gant Laborde GantMan

Being a Machine Learning beast
View GitHub Profile
Aidurber /
Last active September 29, 2022 13:14
A handy script to clean up a mac thanks to - Gant Laborde's article:
# Cleanup old node_modules
echo "Cleaning node_modules in projects older than 30 days"
find . -name "node_modules" -type d -mtime +30 | xargs rm -rf
echo "Done cleaning node_modules"
# Clean up homebrew
echo "Clean homebrew"
brew update && brew upgrade && brew cleanup
echo "Done cleaning homebrew"
import React from 'react'
import PropTypes from 'prop-types'
import { TouchableWithoutFeedback, Text, View } from 'react-native'
import { Colors, Metrics } from '../Themes'
const defaultOptions = [
GantMan /
Last active December 27, 2021 23:20
ALL the things to do when starting a new Github Project - IR JavaScript | TypeScript

Step 1 - Create nest on Github

  1. Click Plus
  2. New Repository
  5. Do not initialize with anything (easier to add after)
  6. Star your repo
  7. Pull your repo down locally and cd to it
bobfirestone / trump_sort.rb
Last active October 29, 2017 17:15
Ruby implementation of Trump Sort
class TrumpSort
def initialize(arr)
@arr = arr
@wall = nil
@sorted = []
def sort
@arr.each {|n| looper(n)}
jevakallio /
Last active July 7, 2021 19:57
#ReactiveConf 2017 Lightning Talk Submission: JavaScript Slam Poetry

TL;DR: If you want to see me perform a spoken word poem about JavaScript in front of 1000 people (and on video), please ⭐ star this gist. If you're on mobile, you'll need to request desktop site.

JavaScript Slam Poetry

Javascript! Slam! Poetry!

fta2012 / DragTransform
Last active October 9, 2022 15:32
Slightly modified compiled coffeescript from this codepen: Paste into console on a page that has jQuery to load the two dependent libraries (jquery-ui and numericjs). Then call makeTransformable('#selector-name') to make that element WYSIWYG editable. Use inspector to get the CSS for the transforms.
var selector = 'img' // Replace this with the selector for the element you want to make transformable
jQuery.getScript('//', function() {
jQuery.getScript('//', function() {
(function() {
var $, applyTransform, getTransform, makeTransformable;
$ = jQuery;
t2 / birthday_liker.rb
Last active September 23, 2016 14:10
Like and Comment on every 'Happy Birthday' post on your Facebook feed at once.
require 'date'
require 'koala'
class BirthdayLiker
FACEBOOK_TOKEN = 'your_oauth_key'
BIRTHDAY_WORDS = %w(birthday bday birfday birth born)
THANKS_OPTIONS = ['Thank you!', 'Thanks!', 'Appreciate it!']
def initialize(birthdate, opts={})
alexbevi /
Created August 23, 2012 12:05
Git pre-commit hook that checks ruby source files for Pry breakpoints
# Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files
# for Pry binding references
# Installation
# ln -s /path/to/ /path/to/project/.git/hooks/pre-commit
# Based on