Skip to content

Instantly share code, notes, and snippets.

View rjyo's full-sized avatar
😁

Rakuraku Jyo rjyo

😁
  • Japan
View GitHub Profile
/**
* 一次挑选的不重复几率
*
* @param n 总种类数
* @param m 第m次挑选
* @param batch 每次选的本数,默认为3
*/
const op = (n: number, m = 0, batch = 3) => {
const s = n - batch * m
return (s / n) * ((s - 1) / (n - 1)) * ((s - 2) / (n - 2))
{
"scope": [
{
"status": "0",
"message": [
{
"message_list": []
}
],
"count": 1,
@rjyo
rjyo / SuperCoinView.sol
Created July 17, 2018 03:19
Super CoinView Token
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'SuperCoinViewToken' token contract
//
// Deployed to : 0x37efd6a702e171218380cf6b1f898a07632a7d60
// Symbol : SCV
// Name : Super CoinView Token
// Total supply: 10000000000
// Decimals : 18
@rjyo
rjyo / ToPDF.applescript
Last active March 9, 2018 05:18
Select a keynote and export to PDF using the "Better" quality
on last_offset(the_text, char)
try
set i to 1
set last_occurrence to 0
repeat count of the_text times
if item i of the_text as string = char then
set last_occurrence to i
end if
set i to i + 1
end repeat
@rjyo
rjyo / addr
Created September 4, 2017 04:44
addr
0xDac9Ed569d0aEe9bf9bc68DFD6500159C2a8138f
#!/bin/bash
if [ -n $BITRISE_XCODE_TEST_RESULT ]
then
if [ $BITRISE_XCODE_TEST_RESULT == "succeeded" ]
then
export BITBUCKET_STATUS="SUCCESSFUL"
echo "SUCCESSFUL"
else
export BITBUCKET_STATUS="FAILED"
Pod::Spec.new do |s|
s.name = 'FlurrySDK'
s.version = '4.3.1'
s.license = { :type => 'Commercial', :text => 'Developer\'s use of the SDK is governed by the license in the applicable Flurry Terms of Service. Some components of the SDK are governed by open source software licenses. In the event of any conflict between the license in the applicable Flurry Terms of Service and the applicable open source license, the terms of the open source license shall prevail with respect to those components.' }
s.summary = 'FlurrySDK for analytics reporting.'
s.homepage = 'http://www.flurry.com'
s.author = { 'Flurry' => 'http://www.flurry.com' }
s.source = { :git => 'https://github.com/rktec/Flurry-iOS.git', :tag => '4.3.1' }
s.description = 'FlurrySDK for analytics tracking and reporting.'
s.platform = :ios
Pod::Spec.new do |s|
s.name = 'CPAccelerationTimer'
s.version = '0.0.1'
s.platform = :ios
s.license = 'MIT'
s.summary = 'Calls a block a given number of times, spread out over a given duration, with the between-calls delays determined by a given Bézier curve. Think of it as an NSTimer with custom acceleration.'
s.homepage = 'https://github.com/yangmeyer/CPAccelerationTimer'
s.author = { 'Yang Meyer' => 'https://github.com/yangmeyer' }
s.source = { :git => 'https://github.com/yangmeyer/CPAccelerationTimer.git' }
@rjyo
rjyo / SVHTTPRequest.podspec
Created September 9, 2013 12:19
deployment target set to 6.0 to avoid compile error
Pod::Spec.new do |s|
s.name = 'SVHTTPRequest'
s.version = '0.5'
s.license = 'MIT'
s.summary = 'Simple REST client for iOS and Mac.'
s.homepage = 'http://samvermette.com/310'
s.author = { 'Sam Vermette' => 'hello@samvermette.com' }
s.source = { :git => 'https://github.com/samvermette/SVHTTPRequest.git', :tag => s.version.to_s }
s.description = 'SVHTTPRequest lets you easily interact with RESTful (GET, POST, DELETE, PUT) web APIs. It is blocked-based, uses NSURLConnection, ARC, as well as NSJSONSerialization to automatically parse JSON responses.'
s.source_files = 'SVHTTPRequest/*.{h,m}'
Pod::Spec.new do |s|
s.name = "AESCrypt-ObjC"
s.version = "1.0.0"
s.summary = "A simple and opinionated AES encrypt / decrypt Objective-C class that just works."
s.homepage = "https://github.com/Gurpartap/AESCrypt-ObjC"
s.license = 'MIT'
s.author = { "Gurpartap Singh" => "https://github.com/Gurpartap" }
s.source = { :git => "https://github.com/Gurpartap/AESCrypt-ObjC.git"}
s.platform = :ios, '5.0'
s.source_files = '*.{h,m}'