Skip to content

Instantly share code, notes, and snippets.

View orangecms's full-sized avatar
🐢
Hack the planet!

Daniel Maslowski orangecms

🐢
Hack the planet!
View GitHub Profile
@dferber90
dferber90 / .eslintrc.yml
Last active June 21, 2019 13:27
Example setup of ESLint-plugin-Meteor with AirBnB's code style
# enable ES6
parserOptions:
ecmaVersion: 6
sourceType: "module"
ecmaFeatures:
jsx: true # enable React's JSX
# register plugins
plugins:
- meteor
@jeromerobert
jeromerobert / pandoc-svg.py
Last active September 1, 2023 09:05
Pandoc filter to create PDF files from SVG
#! /usr/bin/env python
"""
Pandoc filter to convert svg files to pdf as suggested at:
https://github.com/jgm/pandoc/issues/265#issuecomment-27317316
"""
__author__ = "Jerome Robert"
import mimetypes
import subprocess
@globby
globby / Fletcher.py
Created March 4, 2014 00:35
The Fletcher16, Fletcher32 and Fletcher64 algorithms
def Fletcher16(string):
a = map(ord,string)
b = [sum(a[:i])%255 for i in range(len(a)+1)]
return (sum(b) << 8) | max(b)
def Fletcher32(string):
a = map(ord,string)
b = [sum(a[:i])%65535 for i in range(len(a)+1)]
return (sum(b) << 16) | max(b)
def Fletcher64(string):
a = map(ord,string)
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a