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
header { | |
clear: both; | |
position: absolute; | |
top: 5px; | |
left: 5px; | |
z-index: 20; | |
} |
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
module Matome | |
@@clapLoader = nil | |
def self.clap(dir=nil) | |
if @@clapLoader then | |
@@clapLoader.reload | |
else | |
@@clapLoader = ClapLoader.new dir | |
end | |
end |
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 | |
basedir=/mnt/virya/Downloads/facebook-takeyukikojima | |
htmldir=${basedir}/html | |
awk -v today=20170131 -f friends.awk ${htmldir}/friends.htm | |
# end of file |
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
FILENAME == "test1.csv" { | |
... | |
} |
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 | |
# Copyright (c) 2016 Takeyuki Kojima | |
# Released under the MIT license | |
# http://opensource.org/licenses/mit-license.php | |
declare -a gh=('a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 'u' 'v' 'w' 'x' 'y' 'z') | |
dir=/mnt/publicport/Pictures/★小島農園/2016/201607 | |
basedir=/mnt/publicport/Pictures/★小島農園 |
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 python | |
# -*- coding: utf-8 -*- | |
from gimpfu import * | |
class Rect: | |
def buildWithSelectionBounds(self, bounds): | |
self.nw = { "x": bounds[1], "y": bounds[2] } | |
self.se = { "x": bounds[3], "y": bounds[4] } | |
self.size = { "x": bounds[3] - bounds[1], "y": bounds[4] - bounds[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
(this.UiApp ? nougat : require('nougat')).$( | |
'Inflector', this.UiApp ? {g: this} : {g: global, m: module}, | |
function(glace) { | |
'use strict'; | |
var Inflections = glace.require('./Inflections'); | |
var Transliterator = glace.require('./Transliterator'); | |
var Methods = glace.require('./Methods'); | |
var defaults = glace.require('./defaults'); | |
var isFunc = glace.require('./isFunc'); |
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 rasi | |
>>> for i in rasi.rasi(0.315): print "%d/%d = %g : %g" % i | |
... | |
1/1 = 1 : 0.685 | |
1/2 = 0.5 : 0.185 | |
1/3 = 0.333333 : 0.0183333 | |
3/10 = 0.3 : 0.015 | |
4/13 = 0.307692 : 0.00730769 | |
5/16 = 0.3125 : 0.0025 | |
6/19 = 0.315789 : 0.000789474 |
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 | |
#kicker=wget | |
kicker=curl | |
host=localhost | |
port=19876 | |
path=`for a in "$@"; do echo $a; done | awk -F '' 'BEGIN{OFS=ORS="";for(i=0;i<256;i++)o[sprintf("%c",i)]=i}{for(i=1;i<=NF;i++)$i=($i ~ /[[:alnum:]]/)?$i:"%" sprintf("%02X",o[$i])}{print "/" $0}'` | |
url=http://${host}:${port}${path} |