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
#!/bin/env bash | |
if [[ $# == 0 ]]; then | |
echo "Usage: ./twitter-actual-follower.sh (screen_name)" >&2 | |
echo "twurl is required. " >&2 | |
exit 1 | |
fi | |
echo "Fetching data... (It may take some time. )" >&2 |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
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
{ | |
"plugins": { | |
"html": true, | |
"markdown": true, | |
"jsx": true | |
}, | |
"rules": { | |
"preset-japanese": true, | |
"@textlint-ja/no-synonyms": true, | |
"@proofdict/proofdict": { |
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
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class Normalize | |
{ | |
/** | |
* Handle an incoming request. |
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
#!/bin/bash -eu | |
while [ $# -ne 0 ] | |
do | |
if [[ $1 =~ ^[0-9a-f]{8}\. ]]; then | |
shift | |
continue | |
fi | |
hashed=`crc32 <(echo $1)`.${1##*.} |
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 table_of_contents = document.querySelectorAll(".table-of-contents"); | |
let table_of_contents_counter = 1; | |
table_of_contents.forEach(table => { | |
const headings = table.parentElement.querySelectorAll("h1, h2, h3, h4, h5, h6"); | |
const stack = [{ level: 0, element: table }]; | |
headings.forEach(heading => { | |
const li = document.createElement("li"); | |
const a = document.createElement("a"); | |
const id = `section-${table_of_contents_counter++}`; |
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
#!/bin/bash | |
if [ $# -lt 6 ]; then | |
echo "Usage: `basename $0` (source path) (width rate) (height rate) (X offset) (y offset) (destination path) [(options)]" | |
exit 1 | |
fi | |
width=`identify -format "%w" $1` | |
height=$((width*$3/$2)) | |
convert "$1" ${@:7} -crop ${width}x${height}+$4+$5 "$6" |
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
#!/bin/bash | |
url=`git config --get remote.origin.url` | |
domain=${url#*@} | |
domain=${domain#https://} | |
domain=${domain/:/} | |
branch=`git rev-parse --abbrev-ref HEAD` | |
tweet="" | |
if git rev-parse --verify origin/${branch} >/dev/null 2>&1 |
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
<html> | |
<head> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<h1>Flex Test</h1> | |
<div class="flex-container"> | |
<div class="flex-item"> |
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
var EditorSocketIOServer = require('ot/lib/editor-socketio-server'); | |
/** | |
* ot.js patch for socket.io >= 1.0 | |
* Copyright © 2012-2014 Tim Baumann, http://timbaumann.info | |
* Released under the MIT License, https://github.com/Operational-Transformation/ot.js/blob/master/LICENSE | |
*/ | |
{ | |
var EventEmitter = require('events').EventEmitter; | |
var TextOperation = require('ot/lib/text-operation'); |