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
| PFont myFont; | |
| int size = 30; | |
| Ball balls[] = new Ball[20]; | |
| void setup() { | |
| size(480, 480); | |
| background(255, 255, 255); | |
| fill(0, 0, 0); | |
| noStroke(); | |
| frameRate(90); | |
| myFont = createFont("YuGothic", 24, true); |
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
| int num_circle = 200; | |
| void setup(){ | |
| size(720,720); | |
| background(255); | |
| noStroke(); | |
| } | |
| int counter = 0; | |
| void draw(){ |
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
| // ==UserScript== | |
| // @name Hide www.sejuku.net from google search | |
| // @version 2 | |
| // @include *://google.co.jp/search* | |
| // @include *://www.google.co.jp/search* | |
| // @include *://google.com/search* | |
| // @include *://www.google.com/search* | |
| // ==/UserScript== | |
| for (let elem of document.getElementsByClassName("g")){if(elem.innerHTML.match(/www.sejuku.net/)){elem.style.display="none"}}; |
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
| const dom = (attribute) => { | |
| return $("#winc" + _pid + " " + attribute); | |
| } |
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
| def get_id_of_user_liked_tweet(tweet_id) | |
| json_data = Net::HTTP.get(URI.parse('https://twitter.com/i/activity/favorited_popup?id=' + tweet_id)) | |
| found_ids = json_data.scan(/data-user-id=\\"+\d+/) | |
| found_ids.each{|str| str.slice!(/data-user-id=\\\"+/)} | |
| found_ids = found_ids.map(&:to_i) | |
| unique_ids = found_ids.uniq | |
| return unique_ids | |
| end |
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 'twitter' | |
| require 'net/http' | |
| require 'json' | |
| configFile = open('config.json') do |io| | |
| JSON.load(io) | |
| end | |
| @client = Twitter::REST::Client.new do |config| | |
| config.consumer_key = configFile['CK'] |
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
| String hex = String.format( "#%02X%02X%02X", | |
| (int)( c.getRed() * 255 ), | |
| (int)( c.getGreen() * 255 ), | |
| (int)( c.getBlue() * 255 ) ); |
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
| def gon(num) | |
| "ゴ" * num + "ン" | |
| end | |
| puts "回数を入力して下さい" | |
| (1..readline.to_i).each{|i| puts gon i } |
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
| { | |
| let data = [ | |
| ["イギリス", 245, 63181, 2434], | |
| ["日本", 378, 126200, 4841], | |
| ["アメリカ", 9628, 327830, 20412], | |
| ["ロシア", 17098, 146804, 2097] | |
| ]; | |
| let form = document.forms[0]; | |
| let inputs = form.getElementsByTagName("input"); |
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
| int count = 0; //カウント用変数 | |
| void setup(){ | |
| background(255,255,255); | |
| size(480, 480); | |
| stroke(0); | |
| noFill(); | |
| } | |
| void draw(){ |
OlderNewer