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
/* hellopiyo.c */ | |
#include <stdio.h> | |
int main(void){ | |
printf("hellopiyo\n"); | |
return 0; | |
} |
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
/* revpol.c */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void){ | |
int countNum = 0, didMean = 0; | |
double num[100] = {0.0}; | |
char c; | |
while(1){ |
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
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'twitter' | |
CONSUMER_KEY = '********' | |
CONSUMER_SECRET = '********' | |
ACCESS_TOKEN = '********' | |
ACCESS_TOKEN_SECRET = '********' |
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
require 'sinatra' | |
require 'twitter_oauth' | |
enable :sessions | |
before do | |
key = '**app**consumer**key**' | |
secret = '**app**consumer**secret**' | |
@twitter = TwitterOAuth::Client.new( | |
:consumer_key => key, |
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
javascript:(function(){if(m=document.querySelector('.permalink-tweet-container'))for(i=((m=m.getElementsByClassName('AdaptiveMedia-photoContainer')).length-1);i>=0;i--)if(u=m[i].getElementsByTagName('img')[0].src)window.open(u+':orig')})(); | |
/* | |
javascript:( | |
function() { | |
if(m = document.querySelector('.permalink-tweet-container')) | |
for(i = ((m = m.getElementsByClassName('AdaptiveMedia-photoContainer')).length - 1); i>=0; i--) | |
if(u = m[i].getElementsByTagName('img')[0].src) | |
window.open(u + ':orig') | |
} | |
)(); |
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
<?php | |
$word = '+' . $_GET['query']; | |
$page = shell_exec ( 'curl -o- http://ejje.weblio.jp/small/content/' . urlencode($word) . ' | tr "\n" "\000" | sed "s/<\/\(\|no\)script>/\n/g" | sed "s/<\(\|no\)script.*$//" | sed "s/<meta[^>]*>//" | sed "s/\"http\:\/\/ejje\.weblio\.jp\/small\/content\/\([^\"]*\)\"/\"\.\/ws\.php\?query=\1\"/g" | sed "s/\"http\:\/\/ejje\.weblio\.jp[^\"]*\"/\"\.\/ws\.php\"/g" | tr "\000" "\n"' ); | |
print $page; | |
print "It works.<br>"; # 動作確認用文字列 | |
?> |
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
Array.from(document.getElementsByClassName('url-ext')).map( | |
(v, i) => { | |
if(v.href.match(/https\:\/\/gyazo\.com/)) { | |
divtag1 = document.createElement('div'); | |
divtag1.className = 'js-media media-preview position-rel'; | |
v.parentNode.parentNode.insertBefore(divtag1, v.parentNode.nextSibling); | |
divtag2 = document.createElement('div'); | |
divtag2.className = 'js-media-preview-container position-rel margin-vm'; | |
divtag1.appendChild(divtag2); | |
atag = document.createElement('a'); |
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
// pixivnovel.js | |
// // ページ全体でDOMの変更を検知し都度ボタン設置 | |
// var target = document.querySelector('html') | |
// var observer = new MutationObserver(main) | |
// var config = {childList: true, subtree: true} | |
// observer.observe(target, config) | |
var gebi = id => document.getElementById(id), | |
gebc = className => document.getElementsByClassName(className), |
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
setInterval(() => { | |
document.getElementsByTagName('frame')[0].contentWindow | |
.document.getElementsByTagName('input')[4].click(); | |
console.log('clicked') | |
}, 60000); |
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 | |
# pdf-unlock-minimize.sh <- base dir is where this script is, you must run this from here | |
# |- pdf/ | |
# | \- 01.pdf, 02.pdf,... <- put PDFs you want to minimize, then run this script | |
# |- dec/ <- decrypted PDFs | |
# |- jpgs/ | |
# | \- 01/ <- compressed JPGs from raw/ | |
# | \- raw/ <- displayed raw JPGs | |
# | \- 02/ |
OlderNewer