Skip to content

Instantly share code, notes, and snippets.

View giann's full-sized avatar
🧑‍🚀
Working on Buzz

Benoit Giannangeli giann

🧑‍🚀
Working on Buzz
View GitHub Profile
@daurnimator
daurnimator / htmlgen.lua
Last active August 4, 2017 09:33
experiment for creating html in fengari
local document = js.global.document;
local extra = {}
function extra:append(x)
self.__wrapped__:append(x)
return self
end
local function wrap(e)
return setmetatable({
@varunagrawal
varunagrawal / on-exit-sync.py
Last active September 4, 2021 16:59
Script to sync Taskwarrior after each operation
#!/usr/bin/env python3
# This hooks script syncs task warrior to the configured task server.
# The on-exit event is triggered once, after all processing is complete.
# Make sure hooks are enabled and this hook script is executable.
# Run `task diag` for diagnostics on the hook.
import sys
import json
@kaspergrubbe
kaspergrubbe / build_termite_and_vte.sh
Created February 3, 2017 03:08
Build termite terminal and vte/vte-ng on Ubuntu
# VTE
apt-get install autoconf libglib2.0-dev gtk-doc-tools libpcre2-dev libgirepository1.0-dev gperf libvte-2.91-dev libvte-dev valac unzip
wget https://github.com/thestinger/vte-ng/archive/0.46.0.a.zip
unzip 0.46.0.a.zip
rm 0.46.0.a.zip
cd vte-ng-0.46.0.a
bash autogen.sh
make && make install
cd ~
rm -rf vte-ng-0.46.0.a/
; Beginning of Time - 26 Oct 2016
2016/10/26 Opening Balance
Assets:Banking:Checking $2000.00
Assets:Banking:Savings $100.00
Equity:Opening
[Assets:Budget:Food] $100.00
[Assets:Budget:Rent] $1000.00
[Assets:Budget:Vacation] $200.00
[Assets:Budget:Gas] $50.00
@CMCDragonkai
CMCDragonkai / regular_expression_engine_comparison.md
Last active May 10, 2024 05:22
Regular Expression Engine Comparison Chart

Regular Expression Engine Comparison Chart

Many different applications claim to support regular expressions. But what does that even mean?

Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.

The information here is just copied from: http://regular-expressions.mobi/refflavors.html

@rvl
rvl / git-pushing-multiple.rst
Created February 9, 2016 11:41
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@daurnimator
daurnimator / cqueues-fifo.lua
Created March 17, 2015 21:13
Wrapper around fifo.lua using cqueues to implement non-blocking queues.
local new_fifo = require "fifo"
local cqueues = require "cqueues"
local cc = require "cqueues.condition"
local methods = {}
local mt = {
__index = methods;
}
function methods.new(...)
local cond = cc.new();
@ericelliott
ericelliott / essential-javascript-links.md
Last active May 17, 2024 03:38
Essential JavaScript Links
@basham
basham / css-units-best-practices.md
Last active June 2, 2024 11:32
CSS Units Best Practices

CSS units

Recommendations of unit types per media type:

Media Recommended Occasional use Infrequent use Not recommended
Screen em, rem, % px ch, ex, vw, vh, vmin, vmax cm, mm, in, pt, pc
Print em, rem, % cm, mm, in, pt, pc ch, ex px, vw, vh, vmin, vmax

Relative units

Relative units

@hdragomir
hdragomir / sm-annotated.html
Last active March 5, 2024 08:57
The deferred font loading logic for Smashing Magazine. http://www.smashingmagazine.com/
<script type="text/javascript">
(function () {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);