Skip to content

Instantly share code, notes, and snippets.

View romainl's full-sized avatar
💰
Alwayz Into Somethin'

Romain Lafourcade romainl

💰
Alwayz Into Somethin'
  • Razorfish France
  • Paris, France
View GitHub Profile
@AndrewRadev
AndrewRadev / grep.vim
Last active October 6, 2015 10:28
A simple :Grep
" Can be called in several ways:
"
" :Grep <something> " -> Grep for the given search query
" :Grep " -> Grep for the word under the cursor
" :'<,'>Grep " -> Grep in visual mode
"
command! -count=0 -nargs=* Grep call s:Grep(<count>, <q-args>)
function! s:Grep(count, args)
try
let original_grepprg = &grepprg
@plugnburn
plugnburn / README.md
Last active March 27, 2016 16:09
Psto: a single package.json to scaffold and run your single-post web page in no time

Psto

This is a no-brainer to get your single-post web page up and running. Just have to have Node and NPM installed, and /bin/sh pointing to Bash shell. Styling is powered by 999.css.

Steps:

  1. Place the below package.json into an empty directory and enter this directory in your command line prompt.
  2. Run npm run scaffold.
  3. Edit domain, title and author in the config section of your package.json. The domain may be either a Surge subdomain or your own (please refer to the Surge docs). If you're going to host your page yourself, you may leave domain empty.
anonymous
anonymous / minimalist.vim
Created July 6, 2016 20:23
hi clear
if exists("syntax_on")
syntax reset
endif
let colors_name = "minimalist"
hi Normal cterm=NONE ctermbg=233 ctermfg=255
set background=dark
@plugnburn
plugnburn / README.md
Last active July 7, 2016 19:45
Z5: a nano-library bundle for client-side development

Z5

Move all your frontend development to real programming with Z5 nano-library bundle that contains:

  • Zen.js (v2) for reactive in-memory storage;
  • Q.js for DOM manipulation;
  • R.js for client-side routing;
  • XT.js for dynamic DOM construction/templating;
  • XS.js for dynamic stylesheet construction.
@felixSchl
felixSchl / run.sh
Last active November 15, 2016 16:46
Typescript 2 -> ES6 -> Babel -> ES5 (+ watchable / NO gulpfile! - just unix pipes) https://asciinema.org/a/20h1t61ky43xvszkrcl8h24jo
#!/bin/bash
#
# Task wrapper. Runs various chores in a cross platform manner.
#
# Usage: run [-h] <command>
#
# Available commands are:
# build: Build the project
# <other>: Run any other command available in the NPM path
#
@igemnace
igemnace / no-statusline-wednesdays.vim
Created September 5, 2017 09:36
No-statusline-wednesdays on #vim! Place in your ~/.vim/after/plugin directory for best results.
if system("date +%a") =~? "wed" | set laststatus=0 | endif
@azproduction
azproduction / LICENSE.txt
Created January 17, 2012 08:21 — forked from 140bytes/LICENSE.txt
Tiny ajax
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mikhail Davydov <azazel.private@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@freedmand
freedmand / tester.js
Last active November 7, 2018 11:13
JavaScript unit testing in under 30 lines
const PASS = ['32']; // green
const FAIL = ['31', '1']; // red, bold
function logStyle(ansiEscapeCodes, text) {
console.log(`\x1b[${ansiEscapeCodes.join(';')}m${text}\x1b[0m`);
}
class Tester {
constructor() {}
function! RepWincmd(...)
execute (v:count ? v:count : s:rep[1]) 'wincmd' s:rep[0]
endfunction
function! s:setup(rep, ...)
let s:rep = [a:rep, v:count ? v:count : get(a:000, 0, 1)]
set operatorfunc=RepWincmd
return 'g@l'
endfunction
@plugnburn
plugnburn / README.md
Last active November 16, 2019 10:42
ZenQRXT - all nano-goodness, combined

ZenQRXT - all nano-goodness, combined

This page aims to provide a downloadable bundle of four awesome nano-libraries that offer a complete client-side barebones stack: Zen.js, Q.js, R.js and XT.js. Please read about each library at its README page.

Using the bundle

Bundle size is 2641 bytes (1303 bytes gzipped). Download it right here or include it into your code: