This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |
| ) | |
| ) | |
| ) |
This file contains hidden or 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
| proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) | |
| sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) | |
| dev on /dev type devtmpfs (rw,nosuid,relatime,size=1975368k,nr_inodes=493842,mode=755) | |
| run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755) | |
| /dev/sda5 on / type btrfs (rw,relatime,compress=lzo,ssd,space_cache) | |
| securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) | |
| tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) | |
| devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) | |
| tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) | |
| cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd) |
This file contains hidden or 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 | |
| boot | |
| data | |
| dev | |
| etc | |
| home | |
| lib | |
| lib64 | |
| mnt | |
| mountHome |
This file contains hidden or 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 FindProxyForURL(url, host) { | |
| if (url.substring(0, 5) == "http:") { | |
| return "PROXY sazanami.nna774.net:8080"; | |
| } else { | |
| return "DIRECT"; | |
| } | |
| } |
This file contains hidden or 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
| require 'rss' | |
| ANOND_URI = "http://anond.hatelabo.jp/rss" | |
| rss = RSS::Parser.parse(ANOND_URI) | |
| BASE = "data/" | |
| rss.items.each do |e| | |
| name = e.link.sub(/^.*\//, "") | |
| name = BASE + name |
This file contains hidden or 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
| local-zone: "nna774.net" static | |
| #local-data: "doroid.nna774.net A 10.8.8.11" | |
| local-data: "router.nna774.net A 10.8.8.12" | |
| local-data: "ix2015.nna774.net A 10.8.8.12" | |
| local-data: "yukari.nna774.net A 10.8.8.12" | |
| local-data: "ichigo.nna774.net A 10.8.8.15" | |
| local-data: "AP.nna774.net A 10.8.8.15" | |
| local-data: "utsutsu.nna774.net A 10.8.8.32" | |
| local-data: "tsukumo.nna774.net A 10.8.8.32" | |
| local-data: "sazanami.nna774.net A 10.8.8.33" |