Unityを分かっていない人(主に筆者)向けのメモです
AddModsSliderへのプルリクエストの検討時にCM3D2-01さんから教わりました。
- ReiPatcherでUnityInjector.Patcherを適用すると
Unityを分かっていない人(主に筆者)向けのメモです
AddModsSliderへのプルリクエストの検討時にCM3D2-01さんから教わりました。
#!/usr/bin/sudo sh | |
## ruby_revealer.sh -- decrypt obfuscated GHE .rb files. 2.0.0 to 2.3.1+. | |
## From `strings ruby_concealer.so`: | |
## | |
## > This obfuscation is intended to discourage GitHub Enterprise customers | |
## > from making modifications to the VM. | |
## | |
## Well, good, as long as its not intended to discourage *me* from doing this! |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <mutex> | |
#define SIMD // AVX2を利用する。 | |
//#define S64 // テーブルを64bitにする。SIZEを6以上にするために必要 | |
#ifdef S64 | |
typedef int64_t table; |
(import (scheme base) | |
(scheme write) | |
(gauche partcont)) | |
(define-syntax PEG:reify | |
(syntax-rules () | |
((_ expr) | |
(reset (PEG:unit expr))))) | |
(define (PEG:reflect x) |
if [[ ! -n "${TMUX-}" ]]; then | |
if tmux has-session; then | |
tmux attach-session || exit $? | |
exit 0 | |
else | |
tmux || exit $? | |
exit 0 | |
fi | |
fi |
I fell in love with CoffeeScript a couple of years ago. Javascript has always seemed something of an interesting curiosity to me and I was happy to see the meteoric rise of Node.js, but coming from a background of Python I really preferred a cleaner syntax.
In any fast moving community it is inevitable that things will change, and so today we see a big shift toward ES6, the new version of Javascript. It incorporates a handful of the nicer features from CoffeeScript and is usable today through tools like Babel. Here are some of my thoughts and issues on moving away from CoffeeScript in favor of ES6.
While reading I suggest keeping open a tab to Babel's learning ES6 page. The examples there are great.
Holy punctuation, Batman! Say goodbye to your whitespace and hello to parenthesis, curly braces, and semicolons again. Even with the advanced ES6 syntax you'll find yourself writing a lot more punctuatio
#!/bin/sh | |
# | |
# Orinally made by Lovell Fuller for sharp | |
# https://github.com/lovell/sharp | |
# | |
# Usage: | |
# curl -s https://gist.githubusercontent.com/h2non/89bb2f87c6499d0b25f1/raw/bf3d0743107f02f5db2b93c53f7f0e07a1c33112/libvips-installer.sh | sudo bash - | |
# |
まず、nominalな継承関係はないので、ここでの継承関係とはクラス<A>と<B>の包含関係が | |
A \subset B | |
であることします。ようするに | |
(instanceof? x A) => (instanceof? x B) | |
みたいな感じですね。これを実現するためにクラス間の継承関係を*あとづけ*できるようにします。 |
var Promise = require('bluebird'); | |
var sinon = require('sinon'); | |
var User = require('./db/models').User; | |
describe('User model', function(){ | |
var userFindStub; | |
var sandbox; | |
before(function(){ | |
sandbox = sinon.sandbox.create(); |