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 main() { | |
int number; | |
while (1) { | |
printf("Enter your number: "); | |
scanf("%d", &number); | |
if (number > 10) { |
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
var WebSocket = require('websocket').client; | |
var request = require('request'); | |
var cheerio = require('cheerio'); | |
var stripJsonComments = require('strip-json-comments'); | |
var moment = require('moment-timezone'); | |
var fs = require('fs'); | |
var hostname = 'ws://typhoon.yumetaro.info/websocket'; | |
var ws = new WebSocket(); |
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('sugar'); | |
var fs = require('fs'); | |
var filenames = fs.readdirSync('.'); | |
filenames.forEach(function(filename) { | |
if (filename.endsWith('.png') || filename.endsWith('.jpg')) { | |
fs.stat(filename, function(err, stat) { | |
var time = new Date(Math.min(stat.mtime, stat.ctime, stat.atime)); | |
var timeString = time.getFullYear() + '-' + (time.getMonth() + 1).toString().padLeft(2, '0'); | |
fs.exists(timeString, function (exists) { |
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
var YouTyping=function(){function ぴ(ぴ){var ょ=new Date,ぴょ=ん(ょ.getHours(),2),ょょ=ん(ょ.getMinutes(),2),んょ=ん(ょ.getSeconds(),2),ぴん=ん(ょ.getMilliseconds(),3);$("#debug").append("["+ぴょ+":"+ょょ+":"+んょ+"."+ぴん+"] "+ぴ+"\n"),console.log(ぴ)}function ょ(ぴ){ぴ=ぴ.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var ょ=new RegExp("[\\?&]"+ぴ+"=([^&#]*)"),ん=ょ.exec(location.search);return null===ん?"":decodeURIComponent(ん[1].replace(/\+/g," "))}function ん(ぴ,ょ){return ぴ=ぴ.toString(),ぴ.length<ょ?ん("0"+ぴ,ょ):ぴ}var ぴょ=function(ん,ぴょ){var んょ=this;this.noteState={WAITING:0,HITTING:1,CLEARED:2,HITTINGFAILED:3,FAILED:4};var ょん,んん=function(){ょん=$.Deferred(),ぴ("Setting Player Up...");var ょ=document.createElement("script");ょ.src="https://www.youtube.com/iframe_api";var ん=document.getElementsByTagName("script")[0];return ん.parentNode.insertBefore(ょ,ん),ょん.promise()};window.onYouTubeIframeAPIReady=function(){var ん=んょ.settings;ぴ("Player API is Ready."),"true"===ょ("sandbox")&&this.DOM.player.setAttribute("sandbox","allow-same-origin allow-scripts"),んょ.player=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
var YouTyping=function(){function ぴょん(ぴょん){var ぴょんぴょん=new Date,ぴょんぴょんぴょんぴょん=ぴょんぴょんぴょん(ぴょんぴょん.getHours(),2),ぴょんぴょんぴょんぴょんぴょん=ぴょんぴょんぴょん(ぴょんぴょん.getMinutes(),2),ぴょんぴょんぴょんぴょんぴょんぴょん=ぴょんぴょんぴょん(ぴょんぴょん.getSeconds(),2),ぴょんぴょんぴょんぴょんぴょんぴょんぴょん=ぴょんぴょんぴょん(ぴょんぴょん.getMilliseconds(),3);$("#debug").append("["+ぴょんぴょんぴょんぴょん+":"+ぴょんぴょんぴょんぴょんぴょん+":"+ぴょんぴょんぴょんぴょんぴょんぴょん+"."+ぴょんぴょんぴょんぴょんぴょんぴょんぴょん+"] "+ぴょん+"\n"),console.log(ぴょん)}function ぴょんぴょん(ぴょん){ぴょん=ぴょん.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var ぴょんぴょん=new RegExp("[\\?&]"+ぴょん+"=([^&#]*)"),ぴょんぴょんぴょん=ぴょんぴょん.exec(location.search);return null===ぴょんぴょんぴょん?"":decodeURIComponent(ぴょんぴょんぴょん[1].replace(/\+/g," "))}function ぴょんぴょんぴょん(ぴょん,ぴょんぴょん){return ぴょん=ぴょん.toString(),ぴょん.length<ぴょんぴょん?ぴょんぴょんぴょん("0"+ぴょん,ぴょんぴょん):ぴょん}var ぴょんぴょんぴょんぴょん=function(ぴょんぴょんぴょん,ぴょんぴょんぴょんぴょん){var ぴょんぴょんぴょんぴょんぴょんぴょん=this;this.noteState={WAITING:0,HITTING:1,CLEARED:2,HITTINGFAILED:3,FAILED:4};var ぴょんぴょんぴょんぴょんぴょんぴょんぴょんぴょん,ぴょんぴょんぴょんぴょんぴょんぴょんぴょんぴょんぴょん=function(){ぴょんぴょんぴょんぴょんぴょんぴょんぴょんぴょん=$.Deferred(),ぴょん("Setting Player |
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
var YouTyping=function(){function こころ(こころ){var いつも=new Date,ぴょん=ぴょ(いつも.getHours(),2),ぴょんと=ぴょ(いつも.getMinutes(),2),ぴょーん=ぴょ(いつも.getSeconds(),2),こころぴょん=ぴょ(いつも.getMilliseconds(),3);$("#debug").append("["+ぴょん+":"+ぴょんと+":"+ぴょーん+"."+こころぴょん+"] "+こころ+"\n"),console.log(こころ)}function いつも(こころ){こころ=こころ.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var いつも=new RegExp("[\\?&]"+こころ+"=([^&#]*)"),ぴょ=いつも.exec(location.search);return null===ぴょ?"":decodeURIComponent(ぴょ[1].replace(/\+/g," "))}function ぴょ(こころ,いつも){return こころ=こころ.toString(),こころ.length<いつも?ぴょ("0"+こころ,いつも):こころ}var ぴょん=function(ぴょ,ぴょん){var ぴょーん=this;this.noteState={WAITING:0,HITTING:1,CLEARED:2,HITTINGFAILED:3,FAILED:4};var いつもぴょん,ぴょぴょん=function(){いつもぴょん=$.Deferred(),こころ("Setting Player Up...");var いつも=document.createElement("script");いつも.src="https://www.youtube.com/iframe_api";var ぴょ=document.getElementsByTagName("script")[0];return ぴょ.parentNode.insertBefore(いつも,ぴょ),いつもぴょん.promise()};window.onYouTubeIframeAPIReady=function(){var ぴょ=ぴょーん.settings;こころ("Player API is Read |
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(こころ,いつも){"object"==typeof module&&"object"==typeof module.exports?module.exports=こころ.document?いつも(こころ,!0):function(こころ){if(!こころ.document)throw new Error("jQuery requires a window with a document");return いつも(こころ)}:いつも(こころ)}("undefined"!=typeof window?window:this,function(こころ,いつも){function ぴょ(こころ){var いつも=こころ.length,ぴょ=ぴょんとぴょんぴょんと.type(こころ);return"function"===ぴょ||ぴょんとぴょんぴょんと.isWindow(こころ)?!1:1===こころ.nodeType&&いつも?!0:"array"===ぴょ||0===いつも||"number"==typeof いつも&&いつも>0&&いつも-1 in こころ}function ぴょん(こころ,いつも,ぴょ){if(ぴょんとぴょんぴょんと.isFunction(いつも))return ぴょんとぴょんぴょんと.grep(こころ,function(こころ,ぴょん){return!!いつも.call(こころ,ぴょん,こころ)!==ぴょ});if(いつも.nodeType)return ぴょんとぴょんぴょんと.grep(こころ,function(こころ){return こころ===いつも!==ぴょ});if("string"==typeof いつも){if(こころぴょーんぴょんと.test(いつも))return ぴょんとぴょんぴょんと.filter(いつも,こころ,ぴょ);いつも=ぴょんとぴょんぴょんと.filter(いつも,こころ)}return ぴょんとぴょんぴょんと.grep(こころ,function(こころ){return ぴょんとぴょんぴょんと.inArray(こころ,いつも)>=0!==ぴょ})}function ぴょんと(こころ,いつも){do こころ=こころ[いつも];while(こころ&&1!==こころ.nodeType);return こころ}function ぴょーん(こころ){var |
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(ココア,チノ){"object"==typeof module&&"object"==typeof module.exports?module.exports=ココア.document?チノ(ココア,!0):function(ココア){if(!ココア.document)throw new Error("jQuery requires a window with a document");return チノ(ココア)}:チノ(ココア)}("undefined"!=typeof window?window:this,function(ココア,チノ){function リゼ(ココア){var チノ=ココア.length,リゼ=ぴょんとぴょーんぴょん.type(ココア);return"function"===リゼ||ぴょんとぴょーんぴょん.isWindow(ココア)?!1:1===ココア.nodeType&&チノ?!0:"array"===リゼ||0===チノ||"number"==typeof チノ&&チノ>0&&チノ-1 in ココア}function シャロ(ココア,チノ,リゼ){if(ぴょんとぴょーんぴょん.isFunction(チノ))return ぴょんとぴょーんぴょん.grep(ココア,function(ココア,シャロ){return!!チノ.call(ココア,シャロ,ココア)!==リゼ});if(チノ.nodeType)return ぴょんとぴょーんぴょん.grep(ココア,function(ココア){return ココア===チノ!==リゼ});if("string"==typeof チノ){if(こころぴょんぴょんと.test(チノ))return ぴょんとぴょーんぴょん.filter(チノ,ココア,リゼ);チノ=ぴょんとぴょーんぴょん.filter(チノ,ココア)}return ぴょんとぴょーんぴょん.grep(ココア,function(ココア){return ぴょんとぴょーんぴょん.inArray(ココア,チノ)>=0!==リゼ})}function ティッピー(ココア,チノ){do ココア=ココア[チノ];while(ココア&&1!==ココア.nodeType);return ココア}function ラビットハウス(ココア){var チノ=ぴょぴょんとぴょんと[ココア]={ |
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
module display(row, col, red, green, blue, color, up, down, left, right, vnotactive, CLK, RST); | |
input [9:0] row, col; | |
input CLK, RST, color, up, down, left, right, vnotactive; | |
output red, green, blue; | |
reg red, green, blue; | |
reg [23:0] count, bang; | |
reg [9:0] originX, originY, slideY, randX; | |
reg [1:0] key_state; | |
reg [15:0] state; | |
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
var cheerio = require('cheerio'); | |
var request = require('request'); | |
var async = require('async'); | |
var fs = require('fs'); | |
var querystring = require('querystring'); | |
var url = require('url'); | |
var pics = JSON.parse(fs.readFileSync('twitpics.json')); | |
var skipped = []; |