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
# def repeat_every(interval) | |
# Thread.new do | |
# loop do | |
# start_time = Time.now | |
# yield | |
# elapsed = Time.now - start_time | |
# sleep([interval - elapsed, 0].max) | |
# end | |
# end | |
# end |
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
f = File.open("AliceInWonderland.txt", "r") | |
a = "" | |
f.each_line do |line| | |
a +=line | |
end | |
f.close | |
a = a.gsub(".","").gsub("!","").gsub(",","").gsub(";","").gsub("\"","").gsub("(","").gsub(")","").gsub("?","").gsub(":","").split(" ") | |
m = {} | |
a.map{|x| | |
if m[x] == nil |
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
{ | |
"id": "29c6cf94-7bf4-b757-0e6d-d1d002e79cf2", | |
"name": "MacMini", | |
"values": [ | |
{ | |
"key": "url", | |
"value": "http://172.18.5.156:3991/api", | |
"type": "text", | |
"enabled": true | |
}, |
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> | |
#include <math.h> | |
int main(){ | |
unsigned long long set[3] = {0, 2, 7}; | |
unsigned long long input; | |
unsigned long long ans; | |
int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q; | |
scanf("%llu", &input); | |
for(a=0;a<3;a++){ | |
for(b=0;b<3;b++){ |