popular | floss | license | comment |
---|---|---|---|
Avenir/Next | |||
Baskerville | Libre Baskerville, Open Baskerville | SIL OFL1.1(Both) | |
Caslon | Libre Caslon Display, Libre Caslon Text | SIL OFL1.1 | |
Bodoni | Libre Bodoni | SIL OFL1.1 | |
Copperplate | |||
Didot |
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
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y build-essential curl | |
# NodeJS >= 6.0 | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | |
RUN apt-get install -y nodejs | |
# ttfautohint |
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
int winWidth = 600; // ウィンドウの横幅 | |
int winHeight = 400; // ウィンドウの縦幅 | |
static final int CELL_SIZE = 15; // セルの大きさ | |
int start = 2; // 初期盤面のパターン番号 | |
int nCellX = winWidth / CELL_SIZE; // 横(x)方向のセルの個数 | |
int nCellY = winHeight / CELL_SIZE; // 縦(y)方向のセルの個数 | |
// 盤面(field)の状況 | |
// 各セルはALIVEが生存、DEADが死亡を表す |
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
import sys | |
import unicodedata | |
def main(): | |
for line in sys.stdin: | |
line_data = line.split(" ") | |
# Python 2.7 | |
w = unicodedata.east_asian_width(unichr(int(line_data[0], 16))) | |
if w == 'A': | |
print line.rstrip('\n') |
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
fn is_prime(n: u64) -> bool { | |
return miller_rabin_test(n, | |
[2, 325, 9375, 28178, 450775, 9780504, 1795265022]); | |
} | |
fn miller_rabin_test(n: u64, bases: [u64; 7]) -> bool { | |
match n { | |
0 | 1 => return false, | |
2 | 3 => return true, | |
n if n & 1 == 0 => return false, |
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
defmodule Kakizome do | |
def multiple_of_nine?(x) when not is_integer(x), do: false | |
# negative integer | |
def multiple_of_nine?(n) when n < 0, do: multiple_of_nine?(-n) | |
# 0, 1, 2, 3, 4, 5, 6, 7, 8 -> false | |
def multiple_of_nine?(n) when n <= 8 , do: false | |
def multiple_of_nine?(9), do: true | |
def multiple_of_nine?(n) do | |
# Is sum-of-digits-in-decimal multiple of 9 ? | |
n |> Integer.to_string |> String.codepoints |> \ |
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 | |
# encoding : utf-8 | |
# LICENSE: Public Domain | |
# all of this libraries are Ruby's standard library | |
# no gem required | |
require 'base64' | |
require 'openssl' | |
require 'optparse' |
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
# これはzshのhistoryの設定に依存するかも | |
# zshのヒストリファイルを~/.zsh-historyとして | |
# かつzshのextended_historyをONにしている場合使える | |
cat $HOME/.zsh-history | awk 'FS=";" {print $2}' | awk '{print $1}'| LANG=C sort | LANG=C uniq -c | LANG=C sort -nr | head |
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 | |
# encoding : utf-8 | |
require 'msf/core' | |
class Metasploit3 < Msf::Auxiliary | |
include Msf::Exploit::Remote::Tcp | |
include Msf::Auxiliary::Scanner | |
def initialize | |
super( | |
'Name' => 'Simple HTTP server detector', |
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/local/bin/gosh | |
(define (collatz-next n) | |
(cond | |
((even? n) (/ n 2)) | |
((odd? n) (+ (* n 3) 1))) | |
) | |
(define (collatz n) |
NewerOlder