- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
#Original | |
# If you were down with this you are a code martyr waiting for a stab. | |
# Ruby was born so that code could be drier than your Grandma. | |
# The first any? method is as useless as a PHP Senior Developer so I ain't worried! | |
# The @offenders hash always get saved using the store method so cut that bitch off! | |
if @offenders.any? && @offenders.key?(nick) | |
@offenders.store(nick, @offenders.fetch(nick).next) | |
else | |
@offenders.store(nick, 1) |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
# I used https://github.com/eliotsykes/rack-zippy to serve gzipped static assets. | |
# By default the rails asset pipeline was not compressing any static svg files, | |
# so I did the following to achive that. | |
# | |
# First create a rake task that will fine and compress svg files. | |
# File: lib/tasks/assets_svg_compress.rake | |
namespace :assets do | |
task :svg_compress => :environment do | |
svg_files = Dir["./public/**/*.svg"] | |
svg_files.each do |file| |
'use strict'; | |
/* eslint-disable consistent-this */ | |
let middlewareManagerHash = []; | |
/** | |
* Composes single-argument functions from right to left. The rightmost | |
* function can take multiple arguments as it provides the signature for | |
* the resulting composite function. | |
* |
I've compiled a list of data | |
aggregators, data brokers, direct marketing firms, and others who trade | |
personal data. Many of these are very quickly dealt with via web forms, | |
but others require a letter and a copy of a photo ID. Many of the data | |
brokers came from my notes, but others have come from Reddit threads, | |
and stopdatamining.me. All sources were fairly out of date, so I've gone | |
through and listed the current contact info and process for each. Feel | |
free to pass it along and let me know if there are any errors or | |
omissions. ^_^ |
/** | |
* MerkleTree Implementation | |
* @version 1.0.0 | |
* @author Ronny Amarante <[email protected]> | |
*/ | |
var SHA256 = require("crypto-js/sha256"); | |
function MerkleTree(transactions) { | |
this.transactions = transactions; |