Skip to content

Instantly share code, notes, and snippets.

@jayvdb
jayvdb / [email protected]
Last active June 6, 2021 01:26 — forked from bvigueras/[email protected]
clang-format version 6 (6.0.1) formula for brew
class ClangFormatAT6 < Formula
desc "Formatting tool for C/C++/Java/JavaScript/Objective-C/Protobuf"
homepage "https://releases.llvm.org/6.0.1/tools/clang/docs/ClangFormat.html"
version "6.0.1"
if MacOS.version >= :sierra
url "https://releases.llvm.org/6.0.1/llvm-6.0.1.src.tar.xz"
sha256 "b6d6c324f9c71494c0ccaf3dac1f16236d970002b42bb24a6c9e1634f7d0f4e2"
else
url "http://releases.llvm.org/6.0.1/llvm-6.0.1.src.tar.xz"
@jayvdb
jayvdb / 0_reuse_code.js
Created May 23, 2017 12:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jayvdb
jayvdb / MathJax.ipynb
Created September 23, 2016 05:28 — forked from cyhsutw/MathJax.ipynb
Grabbed from https://github.com/odewahn/ipynb-examples, converted to v3 for GitHub to render.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jayvdb
jayvdb / osm-id-coastline-ways.geojson
Last active August 30, 2016 13:38 — forked from anonymous/overpass.geojson
OSM Indonesia coastline
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jayvdb
jayvdb / osm-id-island-in-wikimedia.geojson
Last active August 30, 2016 13:41 — forked from anonymous/overpass.geojson
OSM Indonesia islands with Wikipedia or Wikidata links
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jayvdb
jayvdb / check_dubious_concat.py
Created July 25, 2016 16:12 — forked from lordmauve/check_dubious_concat.py
Linter for implicit string literal concatentation in list-like context
def check_dubious_concat(src):
"""Check for suspicious string literal concatenation.
We will warn about instances of string literal concatenation in list-like
contexts - that is, where concatenated string literals are adjacent to
commas or inside square brackets.
Such a heuristic will catch instances like this::
foo = [
@jayvdb
jayvdb / merge.md
Created August 8, 2014 19:13 — forked from pablitoc/merge.md

If someone forks a gist and you'd like to merge their changes. Do this:

  1. clone your repo, I use the name of the gist

     git clone git://gist.github.com/1163142.git gist-1163142
    
  2. add a remote for the forked gist, I'm using the name of my fellow developer

     git remote add aaron git://gist.github.com/1164196.git
    
#!/usr/bin/env python
"""
Print out a report of Wikipedia articles you've visited using your Google Chrome history database.
The output is in Markdown, and you'll need to shutdown Chrome before you run this or else the
database will be locked.
"""
import os
import re