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
$vsWhere = 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe' | |
$vsInstallPath = &($vsWhere) -latest -property installationPath | |
if ($vsInstallPath -and (test-path "$vsInstallPath\Common7\Tools\vsdevcmd.bat")) { | |
& "${env:COMSPEC}" /s /c "`"$vsInstallPath\Common7\Tools\vsdevcmd.bat`" -no_logo && set" | foreach-object { | |
$name, $value = $_ -split '=', 2 | |
set-content env:\"$name" $value | |
} | |
} |
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
# frozen_string_literal: true | |
require 'socket' | |
# :nodoc: | |
module TeeReader | |
attr_reader :buffer | |
def initialize(*args) | |
super |
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
# frozen_string_literal: true | |
require 'net/http' | |
require 'fiber' | |
require 'socket' | |
require 'openssl' | |
require 'benchmark/ips' | |
require 'benchmark/memory' |
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
# frozen_string_literal: true | |
require 'net/http' | |
require 'fiber' | |
require 'uri' | |
require 'openssl' | |
require 'socket' | |
require 'pp' | |
require 'benchmark/ips' |
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
using UnityEngine; | |
public class GameInstance { | |
// Core Game Module | |
private Player.Controller _playerController; | |
public Player.Controller PlayerController { | |
retrun _playerController; | |
} | |
public GameInstance() { |
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 'net/http' | |
require 'uri' | |
require 'socket' | |
require 'openssl' | |
require 'fiber' | |
require 'benchmark' | |
require 'benchmark/ips' | |
require 'benchmark/memory' | |
# :nodoc: |
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
# forzen_string_literal: true | |
require 'net/http' | |
require 'awesome_print' | |
require 'json' | |
require 'benchmark' | |
# NOTE: ZH_TO_NUM BEGIN | |
ZH_NUM_MAP = { | |
'一' => 1, |
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 'socket' | |
require 'fiber' | |
class Selector | |
def initialize | |
@readable = {} | |
@writeable = {} | |
end | |
def wait_readable(io) |
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
# Start Command: rackup | |
require 'socket' | |
# Initialize Socket -> Pure Data | |
pd = TCPSocket.new 'localhost', 3000 | |
# Create HTTP Server | |
app = Proc.new do |env| | |
# /?Do=1&Re=0 | |
query = env['QUERY_STRING'] |
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 MyError < StandardError | |
attr_reader :code | |
def initialize(code) | |
@code = code | |
end | |
end | |
def go | |
raise MyError.new(404), 'Not Found' | |
rescue StandardError => e |