I hereby claim:
- I am tusbar on github.
- I am tusbar (https://keybase.io/tusbar) on keybase.
- I have a public key whose fingerprint is 97DF 71BE 194E EA40 D4F6 FD21 FFB8 4101 F521 7D21
To claim this, I am signing this object:
import {checkPropTypes} from 'prop-types' | |
export function eitherRequired(propTypes) { | |
const names = Object.keys(propTypes) | |
const entries = Object.entries(propTypes) | |
const eitherOrType = type => (props, propName, componentName) => { | |
const used = names.filter(name => name in props) | |
if (used.length === 0) { |
const {ObjectId} = require('mongodb') | |
function parse(input) { | |
if (!input) { | |
return | |
} | |
if (input._id) { | |
input = input._id | |
} |
'use strict'; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
var GLOBAL_ATTRIBUTE = exports.GLOBAL_ATTRIBUTE = 'global'; | |
var STYLE_ATTRIBUTE = exports.STYLE_ATTRIBUTE = 'jsx'; | |
var STYLE_COMPONENT = exports.STYLE_COMPONENT = '_JSXStyle'; | |
var STYLE_COMPONENT_CSS = exports.STYLE_COMPONENT_CSS = 'css'; | |
var STYLE_COMPONENT_DYNAMIC = exports.STYLE_COMPONENT_DYNAMIC = 'dynamic'; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Chromium Issue 676368</title> | |
<style> | |
* { | |
box-sizing: content-box; |
document.querySelectorAll('input[type="radio"][value="10"]').forEach(r => { r.checked = true }); | |
document.querySelector('form').submit(); |
I hereby claim:
To claim this, I am signing this object:
import json | |
def build_dict_prefix(current, new): | |
if current: | |
return '{}.{}'.format(current, new) | |
return new | |
def build_list_prefix(current, index): |
from mako.template import Template | |
with file('template.html') as foo: | |
print Template( | |
foo.read(), | |
output_encoding='utf-8', | |
input_encoding='utf-8', | |
default_filters=['decode.utf8', 'h'], | |
encoding_errors='replace' | |
).render() |
#!/usr/bin/env sh | |
url="$1" | |
while [ "$url" ]; | |
do | |
code=$(curl -I -s -o /dev/null -w "%{http_code}" "$url") | |
url=$(curl -I -s -o /dev/null -w "%{redirect_url}\n" "$url") | |
echo "$code $url" | |
done |
use strict; | |
use vars qw($VERSION %IRSSI); | |
use Irssi; | |
use utf8; | |
$VERSION = '1.0'; | |
%IRSSI = ( | |
authors=> 'tusbar', | |
contact=> 'b@pk.am', |