Skip to content

Instantly share code, notes, and snippets.

View subak's full-sized avatar

Subak Systems subak

  • Subak Systems
  • Japan
View GitHub Profile
@meitinger
meitinger / asterisk-13.2.0-win.patch
Last active November 29, 2021 12:49
Compile guide for Asterisk on Cygwin.
diff -ru asterisk-13.2.0-orig/apps/Makefile asterisk-13.2.0-patched/apps/Makefile
--- asterisk-13.2.0-orig/apps/Makefile 2013-04-15 18:43:47.000000000 +0200
+++ asterisk-13.2.0-patched/apps/Makefile 2015-03-24 03:28:53.684406200 +0100
@@ -34,6 +34,6 @@
$(subst .c,.o,$(wildcard confbridge/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,app_confbridge)
ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
- LIBS+= -lres_features.so -lres_ael_share.so -lres_monitor.so -lres_speech.so
+ LIBS+= -lres_stasis.so -lres_ael_share.so -lres_monitor.so -lres_speech.so
LIBS+= -lres_smdi.so
@khrome
khrome / gist:7d87534748545f576fd2
Last active September 16, 2023 17:33
__dirname in the browser
(function(){ //make __dirname, __filename work in the browser
if(window && !window['__dirname']){
var stackTrace = function () {
var lines = (new Error()).stack.split("\n");
// 0 = message, 1 = stackTrace
lines.shift(); lines.shift();
var result = lines.map(function(line){
if(line.indexOf('(native)') != -1){
return {
@ahomu
ahomu / extendClass.js
Last active December 16, 2015 17:50
継承脳乙
'use strict'
var DEFINE_NOT_WRITABLE = {writable: false};
/**
* Base Class of OOP feature
*
// e.g 1
var Klass = klass.of({
constructor: function() {
@ysugimoto
ysugimoto / lazy.js
Last active December 14, 2015 19:49
Deferred pattern implements
(function(module) {
"use strict";
// Scope stacks
var LAZY_ID = 0,
PARALLELS = [];
// exports
module.Lazy = Lazy;
@xl1
xl1 / gist:4229530
Created December 6, 2012 23:54
CSS でドラッグをきめる

CSS でドラッグをきめる

これは CSS Programming Advent Calendar 2012 の 7 日目の記事です。

CSS プログラミングの基本は、「ユーザの操作をなんとかして受け取ってスタイルをあてる」ということの繰り返しです。 クリックの検出に :checked:active, mouseover なら :hover を使う……とやるわけですね。 ならば次は「ドラッグ」も検出したいところです。

それ CSS でできるよ!

@azu
azu / markdown.md
Created February 24, 2012 14:36
markdownで書かれたmarkdownチートシート

Code - コードの挿入

puts 'The best way to log and share programmers knowledge.'

puts 'The best way to log and share programmers knowledge.'

また、コードをインライン表示することも可能です。