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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| <style type="text/css"> | |
| .todo-done { |
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
| class HardWorker | |
| include Sidekiq::Worker | |
| def perform | |
| random = Random.new | |
| init_val = random.rand(1..99999) | |
| apeend_val = random.rand(1..99999) | |
| Hoge.piyo({init_val: init_val, apeend_val: apeend_val}) | |
| p "HardWorker perform args: #{init_val} / #{apeend_val} => Hoge.data is #{Hoge.data}" | |
| 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 'json' | |
| require 'aws-sigv4' | |
| require 'active_support/core_ext' | |
| params = { | |
| 'Action' => 'Publish', | |
| 'TargetArn' => 'arn:aws:sns:ap-northeast-1:000000000000:example-topic', | |
| 'Message' => 'message', | |
| 'Version' => '2010-03-31' | |
| }.to_query |
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 'sinatra/base' | |
| class MyApp < Sinatra::Base | |
| get '/' do | |
| 'top page' | |
| end | |
| 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 'random_bell' | |
| require 'csv' | |
| require 'securerandom' | |
| bell = RandomBell.new | |
| CSV.open("./files/data_sum_#{ARGV[0]}.csv",'w') do |csv| | |
| head = Date.new(2019, 1) | |
| tail = Date.new(2020, 12) | |
| (head..tail).each do |date| |
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
| for i in {1..12}; do | |
| curl --anyauth --user user:password \ | |
| -H 'content-type: application/json' \ | |
| https://viewer.kintoneapp.com/public/api/records/xxxxxx/$i > ./files/$i.json | |
| done |
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 inGame = false | |
| let pushedFlag = 0 | |
| let score = 0 | |
| let plot = 0 | |
| let showScoreLED: Function | |
| input.onButtonPressed(Button.A, function () { | |
| if (!inGame) { | |
| gameStart() | |
| } else if (inGame && pushedFlag == 0) { |
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
| package main | |
| import ( | |
| "log" | |
| "time" | |
| ) | |
| func main() { | |
| log.Print("Start") | |
| time.Sleep(11 * time.Second) |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.0/axios.js"></script> | |
| <style type="text/css"> | |
| #image { |