Skip to content

Instantly share code, notes, and snippets.

onionmk2

Block or report user

Report or block onionmk2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@GOROman
GOROman / EyeJitter.cs
Last active Oct 13, 2019
Unityで微細眼球運動っぽい何か
View EyeJitter.cs
using UnityEngine;
using System.Collections;
public class EyeJitter : MonoBehaviour {
float timer = 0.0f;
Quaternion rot;
public float changeTime = 0.4f; // 変更する時間最小値
@voluntas
voluntas / react.rst
Last active Oct 19, 2019
React コトハジメ
View react.rst

React コトハジメ

日時:2017-01-02
作:@voluntas
バージョン:2.1.0
URL:https://voluntas.githu.io/

突っ込みは Twitter @voluntas まで。

@philippschmitt
philippschmitt / DropboxPaperMarkdownDownloader.md
Last active Mar 28, 2018
Dropbox Paper Markdown (.md) Download Bookmarklet
View DropboxPaperMarkdownDownloader.md

Dropbox Paper Markdown (.md) Download Bookmarklet

I made this bookmarklet to download individual DB Paper documents in Markdown format, which is currently unsupported in Paper.

The interface only supports downloading individual documents in MSWord (.docx) format. While the global download option supports Markdown (.md) files, it doesn't work properly. I frequently find documents missing in the global dump.

Update, 04.06.16: Dropbox finally added the option to select Markdown as download format for individual docs. Which renders my bookmarklet useless, but is great!

Install & Use

@azu
azu / js.md
Last active Nov 6, 2019
JavaScriptのレベル別書籍のまとめ
View js.md

前提: 完成していて、比較的支持を集めていて、JavaScriptを中心にした書籍 (DOM APIよりは言語を中心とした内容)

追記: JavaScriptの入門書 #jsprimerを書いている

最初からES2015で学ぶことを前提にした初心者〜中級者向けのJavaScript本がなかったので書いてる。 ES2015でJavaScriptという言語のコア部分は大きく変わったので、それを前提とした内容にする予定。

@Ashwinning
Ashwinning / Singletons.md
Last active Apr 5, 2018
A copy of the post on Singletons in Unity/C# as it appeared on UnityPatterns.com
View Singletons.md

Singletons

Original post by David Laskey on UnityPatterns

As you develop in Unity, you’ll often find that it’s handy to have just single instances of certain objects. For example, let’s say we have a single GameObject, “MusicManager”, that’s in charge of our music. It might look like this:

using UnityEngine;
 
@LearnCocos2D
LearnCocos2D / gist:77f0ced228292676689f
Last active Sep 7, 2019
Overview of Entity Component System (ECS) variations with pseudo-code
View gist:77f0ced228292676689f

For background and further references see: Entity Component Systems on Wikipedia

ECS by Scott Bilas (GDC 2002)

Entity->Components->Update
  • entity = class: no logic + no data OR at most small set of frequently used data (ie position)
  • component = class: logic + data
foreach entity in allEntities do
    foreach component in entity.components do
@cvrebert
cvrebert / css_regression_testing.md
Last active Sep 9, 2019
Survey of screenshot-based CSS testing tools
View css_regression_testing.md

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots
View GLSL-Noise.md

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@staltz
staltz / introrx.md
Last active Nov 13, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
You can’t perform that action at this time.