This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pick = (keys, object) => | |
Object.entries(object).reduce( | |
(acc, [key, value]) => (keys.includes(key) ? {...acc, [key]: value} : acc), | |
{}, | |
); | |
const parse = x => JSON.parse(JSON.stringify(x)); | |
export default function proxy(initialAttrs = {}) { | |
let current = parse(initialAttrs); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
require 'benchmark' | |
files = Dir[ 'originals/**/*.*' ] | |
converted = [] | |
duplicates = [] | |
errors = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'benchmark' | |
require 'logger' | |
require 'yell' | |
count = 50000 | |
Dir[ '*.log' ].each { |f| File.unlink f } | |
yell = Yell.new 'yell.log' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# This file generates a full changelog from your git history based on your tags. | |
# | |
# @example | |
# ruby changelog.rb | |
# | |
# @example Write to file | |
# ruby changelog.rb > CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<style type="text/css"> | |
.container { | |
/* position: relative; | |
padding-bottom: 160px; */ | |
background-color: orange; |