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
| $(document).ready(function(){ | |
| var exts = ["aif","avi","flac","m4a","mkv","mov","mp3","mp4","ogg","ogv","opus","wav"]; | |
| var m3u = ""; | |
| for (var i = 0; i < $('a').size(); ++i) { | |
| var $uri = $('a').eq(i); | |
| var absuri = $uri.attr('href'); | |
| var available_format = false; | |
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/bash | |
| # usage: | |
| # bash audio_convert.bash ORIGINAL_FILEs_PATH DESTINATION_PATH | |
| find $1 -type f -iname '*.wav' -print0 | while IFS= read -r -d '' fullfile; do | |
| #printf '%s\n' "$fullfile" | |
| file=$(basename "${fullfile}") | |
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
| // BrainFsck Ruby Extension by Keiya CHINEN <[email protected]> | |
| // C extension and Ruby src was written by Keiya CHINEN <[email protected]> | |
| // Original version (Pure-C): https://github.com/keiya/brainfuck | |
| #include "ruby.h" | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| char *prog; | |
| int ary[30000]; |
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
| var timer = setInterval(function(){ | |
| var $btn = $(".btn.btn-large.submit.btn-primary"); | |
| if ($btn.length > 0) { | |
| $btn.click(); | |
| console.debug("Button clicked"); | |
| } | |
| },1000); |
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> /* fprintf() */ | |
| #include <stdlib.h> /* exit() */ | |
| #include <sys/types.h> /* socket(), wait4() */ | |
| #include <sys/socket.h> /* socket() */ | |
| #include <netinet/in.h> /* struct sockaddr_in */ | |
| #include <sys/resource.h> /* wait4() */ | |
| #include <sys/wait.h> /* wait4() */ | |
| #include <pthread.h> /* pthread_create */ | |
| #include <netdb.h> /* getnameinfo() */ | |
| #include <string.h> /* strlen() */ |
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
| #!/usr/bin/python | |
| # ip address util by Keiya Chinen | |
| def binary_ip(dec_ip): | |
| ip_l = dec_ip.split('.') | |
| ip = (int(ip_l[0]) << 24) | (int(ip_l[1]) << 16) | (int(ip_l[2]) << 8) | int(ip_l[3]) | |
| return ip | |
| def decimal_ip(bin_ip): | |
| return (bin_ip >> 24, bin_ip >> 16 & 0xff, bin_ip >> 8 & 0xff, bin_ip & 0xff) |
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
| typedef struct uri { | |
| char host[REQ_HEAD_HOST_SZ]; | |
| char *path; | |
| char *filename; | |
| int port; | |
| } Uri; | |
| int | |
| parse_uri(char uri[], Uri *parsed) | |
| { |
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
| #!/usr/bin/python | |
| import pprint,http.client,sys | |
| from datetime import datetime | |
| from time import sleep | |
| if (len(sys.argv) != 2) : | |
| print ( "Usage: python3 {0} host" .format(sys.argv[0]) ) | |
| quit() |
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
| #!/usr/bin/perl | |
| # by Keiya Chinen <[email protected]> | |
| use strict; | |
| use warnings; | |
| $ENV{'LANG'} = 'C'; | |
| $| = 1; |
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
| <html><head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <style> | |
| div#map_canvas { | |
| width: 640px; | |
| height: 320px; | |
| } | |
| </style> | |
| <title>SOLAR</title> | |
| </head> |