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
// SPDX-License-Identifier: GPL-3.0 | |
/* | |
Copyright 2021 0KIMS association. | |
This file is generated with [snarkJS](https://github.com/iden3/snarkjs). | |
snarkJS is a free software: you can redistribute it and/or modify it | |
under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |
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
pragma circom 2.0.0; | |
include "../node_modules/circomlib/circuits/poseidon.circom"; | |
include "./tree.circom"; | |
template CalculateSecret() { | |
signal input identityNullifier; | |
signal input identityTrapdoor; | |
signal output out; |
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
pragma solidity ^0.5.1; | |
contract a42LockDev { | |
// 利用権 | |
struct Entitlement { | |
uint256 startTime; | |
uint256 endTime; | |
} | |
// アドレスごとの利用権のマッピング | |
mapping (address => Entitlement) internal entitlements; | |
// コントラクトの操作を行うアドレス |
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
### Keybase proof | |
I hereby claim: | |
* I am hiroism007 on github. | |
* I am hiroyuki (https://keybase.io/hiroyuki) on keybase. | |
* I have a public key ASCyf4jlzOAgGsTDBRmP7t_ZPO9s7EnWJz5idy7KJhzqUAo | |
To claim this, I am signing this object: |
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
# セーブデータのあるPC端末 | |
mv /Users/oresama/Library/Application Support/minecraft/saves ~/Dropbox/minecraft/saves | |
ln -s /Users/oresama/Library/Application Support/minecraft/saves ~/Dropbox/minecraft/saves | |
# 共有したい端末 | |
rm -rf /Users/oresama2/Library/Application Support/minecraft/saves | |
ln -s /Users/oresama2/Library/Application Support/minecraft/saves ~/Dropbox/minecraft/saves |
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
class CreateDammies | |
require "rubygems" | |
require "mysql2" | |
def initialize(host = "localhost", username = "root", password = "", database = "nicomon") | |
@client = Mysql2::Client.new(host: host, username: username, password: "", database: database) | |
end | |
def create_user(numbers) |
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 "rubygems" | |
require "rmagick" | |
def directory_search(path) | |
list = Dir.glob("#{path}/*") | |
list.each_with_index do |child, index| | |
if File.directory?(child) | |
directory_search(child) | |
else | |
if File.extname(child) =~ /(jpg)|(png)/ |
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
class String | |
def colorize(color_code) | |
"\e[#{color_code}m#{self}\e[0m" | |
end | |
def green; colorize(32); end | |
end | |
def like_matrix(size=1) | |
[*0..9,*'a'..'z',*'A'..'Z'].sample(size).join |
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
public class Sort { | |
static int[]testNumbers; | |
public static void main(String[] args) { | |
testNumbers = new int[10]; | |
for (int i = 0; i < testNumbers.length; i++) testNumbers[i] = (int) (Math.random() * testNumbers.length + 1); | |
for (int i :testNumbers) System.out.print(i); |
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
testNumbers = new int[10]; |
NewerOlder