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
Plugin.create :naniittenda_yuyushiki do | |
command(:naniittenda_yuyushiki, | |
name: '何を言っとるんだゆゆ式を見ろ', | |
condition: lambda{ |opt| opt.messages.size == 1 }, | |
visible: true, | |
role: :timeline) do |opt| | |
Service.primary.post message: "何を言っとるんだゆゆ式を見ろ #{opt.messages.first.parma_link}" | |
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
package main | |
import ( | |
"bytes" | |
"encoding/base64" | |
"fmt" | |
"image" | |
"image/png" | |
) |
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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AACAAElEQVR4nOx9CfQfVXX/Bf13sdYiCQmQBUhAlrAkJAHZf1Tbat33XYv7vu/aCh6PRz0eqx6PtR6PRY/HWmtdKVJKKSBgCCGEAGExQkggZA/dV9t/Pz/54M31vXkz877f75v5zZ1z5vfmzZ377nvvO7959911f/HDDz/88MMPPwZ3OAPghx9++OGHHwM8nAHwww8//PDDjwEev8QA7Lef7Lf//j+/79d+7dd+7dd+7dcz81r08Us3/PDDDz/88MOPGXnsryuaAeA1yoc/XB7u9/ye3/N7fs/v+b2Zcy+44wfgf/9X/hfXFBew/O//lv/2+37f7/t9v+/3/X6/7+/DAOiFX98Lnf/5n/KfDnOYwxzmMIc5rJ8wvdY/xB0AiGuU4ocffvjhhx9+zLhjf135n/+R/0H5sIfJw1BqBoDXofLXfk1+zZ/xZ/wZf8af8Wf8mf48M33BAzeoAoChAK5/9jP5mb5PKQGZBdZ/5VfkV1D++7/Lv/tz/pw/58/5c/6cP9ft5/ZhAPAQELDgUwpAYwEe01zDgyeZA57/7//J/+P1v/6r/Ks/68/6s/6sP+vP+rMdfVYqDjTwX/8l/0UkSAGskSBdCmJ1chr+vD/vz/vz/rw/78935/mgCoAlxAW0FLQiBf0spAWp+j//s/yz4ziO4ziO4ziO43QERzMAVAGAS0BpF3sgxGwC6pbohOM5nuM5nuM5nuOVxYuqAPBASORvDzADbc5//Ef5R8d1XMd1XMd1XMctg/tLizlLSAEe4hL2+0VcANzX9SrmwA8//PDDDz/86Oaxv65wQeeun/Vf/VX5VV1vGicgVR5wgBzgbXgb3oa34W14G97G5NqYvmkPAMAEYLdPN0AEFQh5BNSNE5CqP+pR8iiUDzwgD3g73o634+14O96OtzPedvZhAOzCr90AKQWwcQGaxAlI1X/zN+U3eb1nj+zxtr |
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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAABEeElEQVR4nOxd+e9eRVc/5X3dX9fyVsSCQNlXKZR9/RP4zR818Qc1Ju5r/MkYY4wxxBhDjDHEGEMMIYQQQghBUmoptRYotZRSC4iIiLjv22s+wKd8epj1zr3PPE+/c5Mnc+eee+6Zuc+dM+ecOefMOTaOcYxjyx6DAYxjHFv4GAxgHOPYwsfnGMC2bbbtnHM+uT7Ox/k4P7vPzzgA+NzFcYxjHGftcQYXUAbAc5Rf/KJ9cVwb18a1s/CaBQ7c8JWv2FdwTlGB5f/8j/3PuD6uj+tnx/UzGIAOfL0W+v3Xf9l/DdiADdhmw3SsmzcSfO6GcYxjHGfVcYYN4P/+z/4P5Re+YF9AqQyA56Hya7/WvnbcM+4Z92zePVEVAEYCnP/v/9r/6nVKCWQWrH/1V9tXo/yP/7D/GPeN+8Z9m3HfGQwAQAAw4CkF0GjAQ/UHMgf+vuqr7Kt4/m//Zv827h33jnvX/F5LHED67/+2/+bNkAK8kZDLCbE6Oc+4f9w/7l+/+4MqAEuID7AaAvY50UHuhbSQq//Lv9i/DJyBM3DWDEcZAFUAcA2UfrADIWYTKC3RqIE38AbeeuBFVQDcEBL5/aF6Rs3vn/7J/mngDtyB2xf3c4OZJaSA01xi22d+Abiu9RRzGMc4xrHexzla4YDmrM/613yNfY3Wa/0EcuW3fIt9y3jGeMZ4RodnWODADWACmO25DAgngtCKQKmfQK7+Td9k34TyH/7B/mE8ZzxnPGc1zwmuAnDg6zIgpQDvF1DjJ5Crf+M32jfy/O/+zv5uPGs8azxr4Wfp4AVXUM4BRsBlQBxf93X2dX7Wr/UT8AzDw7/0JfuS1smxxvPG88bz5n9eVAXAzy8Dfv3X29fzGsspfgJkGjH4N3yDfYOH/+3f2t+OZ45njmfO+8xkLABmetXtMbhhC9DZ/j//0/6T9Ro/Ac84fAlmE7qODo |
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
;;; scratch-log.el --- Utility for *scratch* buffer. | |
;; Copyright (C) 2010 by kmori | |
;; Author: kmori <morihenotegami@gmail.com> | |
;; Prefix: sl- | |
;; This file is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation; either version 2, or (at your option) |
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
function 令呪を以て命じる() { | |
if [ -z $REIJU ] ;then | |
export REIJU=3; | |
sudo $* | |
elif [ $REIJU -gt 0 ] ; then | |
export REIJU=`expr $REIJU - 1`; | |
sudo $* | |
fi | |
} |
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
a,b; | |
gcd(x,y) { | |
if (x < y) return gcd(y, x); | |
if (y == 0) return x; | |
gcd(y, x % y); | |
} | |
lcm(x,y) { | |
x / gcd(x, y) * y; | |
} |
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
gcd(x,y) { | |
if (x < y) return gcd(y, x); | |
if (y == 0) return x; | |
gcd(y, x % y); | |
} | |
lcm(x,y) { | |
x / gcd(x, y) * y; | |
} |
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
#include <stdio.h> | |
int fact(int n){ | |
if(n == 0) return 1; | |
return n * fact(n-1); | |
} | |
int main(){ | |
int n = 0; | |
scanf("%d", &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
(defun post-on-region () | |
(interactive) | |
(let ((str (buffer-substring (region-beginning) (region-end)))) | |
(keyboard-escape-quit) | |
(if (y-or-n-p "Post?") | |
(start-process "ttytter" "*post*" "ttytter" "-silent" "-ssl" "-keyf=mnbn" "-autosplit=cut" (concat "-status=" str)) | |
nil | |
) | |
) | |
) |