π
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 main() { | |
int number; | |
while (1) { | |
printf("Enter your number: "); | |
scanf("%d", &number); | |
if (number > 10) { |
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 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 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('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 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 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 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 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 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 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 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(γγγ,γγ€γ){"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 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(γ³γ³γ’,γγ){"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 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
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 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 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 = []; |