Brief Introduction to Rack
@tomy_kaira
Rack
Specification
for communication between Server and Ruby WAF
#ifndef _MACARON_BASE64_H_ | |
#define _MACARON_BASE64_H_ | |
/** | |
* The MIT License (MIT) | |
* Copyright (c) 2016 tomykaira | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including |
@tomy_kaira
for communication between Server and Ruby WAF
Partial evaluation means to fix some variables in the given code before execution. With a traditional implementation of a compiler or an interpreter, all variables are replaced with its value on each evaluation of that variable. This is because a variable can change at any timing. This is, however, not always true in actual applications. Almost all of large applications has setting variables and data
function count_rest (text) { | |
var limit = 140; | |
// take t.co shorten into account | |
// https://dev.twitter.com/blog/next-steps-with-the-tco-link-wrapper | |
var regex = /(?:https?\:\/\/|www\.)[^\s]+/g; | |
var noURL = text.replace(regex, ""); | |
var URLs = text.match(regex); | |
var length = noURL.length; |
#!/bin/sh -e | |
separator="----8<----8<----8<----8<----" | |
function make_chunk { | |
cd $1 | |
if ! git diff --exit-code --ignore-submodules --quiet; then | |
echo "${PWD#$root}/" | |
git --no-pager diff --no-color --ignore-submodules | |
echo "$separator" |
a あ ア ア 0 | |
i い イ イ 0 | |
u う ウ ウ 0 | |
e え エ エ 0 | |
o お オ オ 0 | |
ka か カ カ 0 | |
ki き キ キ 0 | |
ku く ク ク 0 | |
ke け ケ ケ 0 | |
ko こ コ コ 0 |
#!/bin/sh | |
# | |
# Copyright (c) 2006 Johannes E. Schindelin | |
# SHORT DESCRIPTION | |
# | |
# This script makes it easy to fix up commits in the middle of a series, | |
# and rearrange commits. | |
# | |
# The original idea comes from Eric W. Biederman, in |
The MIT License (MIT) | |
Copyright (c) 2017 Rusoto Project Developers | |
Copyright (c) 2020 tomykaira | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
$fn = 100; | |
// dimension: mm | |
wire_dia = 1.5; | |
screw_head_dia = 9.0; | |
screw_hole_dia = 4.0; | |
head_width = 25; | |
head_height = 25; | |
fillet = 2; |
#!/usr/bin/env ruby | |
# parser for WTHOR file | |
# Copyrihgt (c) tomykaira 2012 | |
# Lisence: MIT | |
filenames = ARGV.length == 0 ? ["WTH_2000/WTH_2000.WTB"] : ARGV | |
CLEAN = true | |
filenames.each do |fn| |