Skip to content

Instantly share code, notes, and snippets.

😉
Nanchatte

Yasuhiro Yamada greymd

😉
Nanchatte
  • Dublin, Ireland
Block or report user

Report or block greymd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@GINK03
GINK03 / 食べログEDA.md
Last active Oct 22, 2019
食べログEDA
View 食べログEDA.md

食べログEDA

3.6点の壁は本当にあるのか

スクレイピングのコード

import os
import sys
@mikkun
mikkun / BannerGei.txt
Created Jul 1, 2017
「第29回シェル芸勉強会 大阪サテライト LT」で使用したスライドのような何か("history -r BannerGei.txt"で読み込んで下さい)
View BannerGei.txt
center(){ printf "%*s\n" $(((${#1}+$(tput cols))/2)) "$1"; };tput reset;printf "<?xml?><svg><text font-size='20'>帰ってきたバナー芸"|convert - pbm:-|pbmtoascii;printf "<?xml?><svg><text font-size='20'> +手書きSVG"|convert - pbm:-|pbmtoascii;center 'KUSANAGI Mitsuhisa(@mikkun_jp) 2017年7月1日';center '第29回シェル芸勉強会';center '大阪サテライトLT大会'
tput reset;printf "<?xml?><svg><text font-size='20'>1. 流れる「toilet」"|convert - pbm:-|pbmtoascii
A=$(printf "<?xml?><svg><text font-size='40'>うんこ💩|"|convert - pbm:-|pbmtoascii|sed 's/[^ ]\+$//');:(){ clear;echo "$A";A=$(echo "$A"|sed -r 's/(.)(.*)/\2\1/');sleep .03;:;};:
tput reset;printf "<?xml?><svg><text font-size='20'>2. 回転寿司"|convert - pbm:-|pbmtoascii
D=0;while :;do echo "<?xml?><svg xmlns:xlink='http://www.w3.org/1999/xlink'><rect x='0' y='0' height='90' width='90' style='fill:none;stroke:black'/><path id='C' d='m60,45 a15,15 0 1 1 -30,0 15,15 0 1 1 30,0 z' style='fill:none;stroke:none'/><text transform='rotate($D,45,45)' font-family='IPA明朝' style='font-size:30px;fill:black'><textPath xlin
@kuwa72
kuwa72 / lg.zsh
Created Mar 31, 2017
Life game(requirements: zsh, egzact. Tested on OSX).
View lg.zsh
#!/usr/bin/env zsh
FO=$(cat)
X=$(head -n 1 <<<$FO)
YL=$(echo $FO|wc -l|bc)
FF=$((echo $X|tr 1 0;echo $FO;echo $X|tr 1 0)|addl 0\ |addr \ 0)
for L in {1..$YL};do
for C in {1..$(echo $X|awk '{print NF}')}; do
echo $FF | sed -n $L,$((L+2))p | cut -d \ -f $C,$((C+1)),$((C+2)) | xargs | {
read B
if echo $B | grep -q '. . . . 1 . . . .';then
@Neetless
Neetless / mail.go
Last active Feb 28, 2017
SMTP mail transfer sample program for gmail and office365.
View mail.go
package main
import (
"bytes"
"errors"
"fmt"
"html/template"
"log"
"net"
"net/mail"
@ryotako
ryotako / addb.fish
Last active Jan 22, 2017
fishのビルトインコマンドだけでegzactを書く練習
View addb.fish
function addb
while read -l line
echo $line
end
if count $argv >/dev/null
echo $argv[1]
end
end
@mecab
mecab / send-region-to-clipboard.el
Last active Jul 22, 2017
Send region to the clipboard via the xterm clipboard integration (PASTE64/OSC52)
View send-region-to-clipboard.el
(defun send-region-to-clipboard (START END)
;; Place https://github.com/skaji/remote-pbcopy-iterm2/blob/master/pbcopy as `cpbcopy`
(interactive "r")
(let ((infile (make-temp-file "send-region-to-clipboard")))
(write-region (buffer-substring (region-beginning) (region-end))
nil
infile
nil
'nomsg)
(with-temp-buffer
@stefanbuck
stefanbuck / upload-github-release-asset.sh
Last active Nov 18, 2019
Script to upload a release asset using the GitHub API v3.
View upload-github-release-asset.sh
#!/usr/bin/env bash
#
# Author: Stefan Buck
# License: MIT
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447
#
#
# This script accepts the following parameters:
#
# * owner
@egisatoshi
egisatoshi / maclaurin-expansion.md
Last active Apr 14, 2016
MacLaurin expansion on shell
View maclaurin-expansion.md
% egison -T -e '(maclaurin-expansion (cos x) x)'                                        
1
0
(/ (* -1 x^2) 2)
0
(/ x^4 24)
0
(/ (* -1 x^6) 720)
0
@GeoffWilliams
GeoffWilliams / debuild_ubuntu_debian_package
Created Nov 5, 2015
Command to run to build debian packages on ubuntu, fixes bad-distribution-in-changes error, needed for the steps to patch a debian package listed at https://raphaelhertzog.com/2011/07/04/how-to-prepare-patches-for-debian-packages/
View debuild_ubuntu_debian_package
# How to run debuild with lintian on ubuntu
# fixes error: bad-distribution-in-changes-file unstable
# Finished running lintian.
debuild -us -uc --lintian-opts --profile debian
@fffaraz
fffaraz / exec.md
Last active Jun 7, 2019
execl, execlp, execle, execv, execvp, execvpe
View exec.md
- e p
l execl execle execlp
v execv execve execvp

  • int execl(char const *path, char const *arg0, ...);
  • int execle(char const *path, char const *arg0, ..., char const *envp[]);
You can’t perform that action at this time.