Skip to content

Instantly share code, notes, and snippets.

View acidsound's full-sized avatar

LEE JAE HO acidsound

View GitHub Profile
@acidsound
acidsound / .block
Last active January 16, 2018 18:39
file to sha256hash
license: gpl-3.0
height: 600
@limingjie
limingjie / GolangDevEnvWin.md
Last active May 12, 2019 17:46
Golang Development Environment - Windows

Golang Development Environment - Windows

  1. Install golang.
  • Set env var GOROOT = C:\Go.
  • Set env var GOPATH = C:\GoPath.
  • Append C:\Go\bin to env var PATH.
  1. Install gitbash.
  2. Install vscode.
  • Install vscode extension Go (by lukehoban).
  • Set GOROOT and GOPATH in vscode user settings.
@Dinir
Dinir / pico-8 korean.txt
Created October 18, 2016 01:16
PICO-8 Manual (Korean)
============================================================================================
PICO-8 v0.1.8
http://www.pico-8.com
(c) Copyright 2014-2016 Lexaloffle Games LLP
만든 이: Joseph White // hey@lexaloffle.com
옮긴 이: Dinir Nertan // DinirNertan@gmail.com
PICO-8은 아래의 기술로 만들어졌습니다:
SDL2 http://www.libsdl.org
@marantz
marantz / MongoDB Settting.md
Last active March 29, 2024 08:03
MongoDB Setting Markdown

MongoDB Shard Setting

1.서버 데몬의 구성

본 문서는 기본 샤딩의 개념을 실습하고 학습하는 데에 목표를 두고 3대의 서버를 둔다는 가정하에 한대의 물리적인 서버에 샤딩을 구성하며 Sharding 의 Rule 이라고 볼 수 있는 Collectoin의 Shard Chunk 구성은 하지 않는다.

각 싸이트마다 데이터의 규칙을 살펴보고 Chunk 구성까지 하여야 하며 Autosharding 은 가급적 구성하지 않는 것으로 한다.

  • mongod

>Sharding이 되는 기본 데몬, 옵션에 따라 configsvr 또는 shardsvr로 나뉘게 된다.

@benstr
benstr / Meteor_uihooks.md
Last active January 25, 2022 09:02
_uihooks Examples

Add preliminary API for registering hooks to run when Blaze intends to insert, move, or remove DOM elements. For example, you can use these hooks to animate nodes as they are inserted, moved, or removed. To use them, you can set the _uihooks property on a container DOM element. _uihooks is an object that can have any subset of the following three properties:

  • insertElement: function (node, next): called when Blaze intends to insert the DOM element node before the element next
  • moveElement: function (node, next): called when Blaze intends to move the DOM element node before the element next
  • removeElement: function (node): called when Blaze intends to remove the DOM element node

Note that when you set one of these functions on a container element, Blaze will not do the actual operation; it's your responsibility to actually insert, move, or remove the node (by calling $(node).remove(), for example).

https://github.com/meteor/meteor/blob/30fb11f1fa0227f1c0ec3eb30b7864ea3b2d210e/History.md

#include <stdio.h>
#import "libavcodec/avcodec.h"
#include "libavutil/channel_layout.h"
#include "libavutil/md5.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
@gabrielhpugliese
gabrielhpugliese / coderstv-router.js
Created November 8, 2013 14:21
Iron-router for http://coderstv.com with tracking - something may be missing because it's coderstv internals
Router.map(function () {
this.route('index', {
controller: 'BasicController',
layoutTemplate: 'indexLayout',
path: '/',
waitOn: function () {
return Meteor.subscribe('Channels');
}
});

tmux 단축키 & 치트시트

실행하기:

tmux

세션명을 주면서 시작하기:

tmux new -s myname
@zeroasterisk
zeroasterisk / client_application.js
Last active September 22, 2018 17:15
MeteorJS code for attaching PhoneGap events, and doing things inside MeteorJS. note: as of now, I'm loading cordova via an AJAX request because it was complaining on direct compile (js bugs in console)... I may keep working on getting it to load with the site/app directly, but the rest of the attached events would remain the same, just without t…
// initialize as soon as the DOM is ready
Session.set('CordovaLoaded', false);
Meteor.startup(function() {
console.log('cordova loading');
// delay loading of cordova until after DOM is ready
// determine WHICH cordova to load
var cordovajspath = '/cordova-2.6.0.js';
if (navigator.userAgent.match(/(iPad|iPhone|iOS)/) != null) {
cordovajspath = '/cordova-2.6.0-ios.js';
} else if (navigator.userAgent.match(/(Android)/) != null) {
@tmeasday
tmeasday / gist:4042603
Last active October 12, 2015 14:47
Meteor "Join" -- Note that this code is *not* production ready.
Meteor.publish 'paths', (since) ->
pointHandles = {}
publishPath = (pathId) =>
pointHandles[pathId] = Points.find({pathId: pathId}).observe
added: (obj) =>
@set('points', obj._id, obj)
@flush()
# these two should never happen
changed: (obj) =>