Skip to content

Instantly share code, notes, and snippets.

@guest271314
guest271314 / compiling_standalone.md
Last active February 23, 2026 00:47
Compiling a standalone executable using modern JavaScript/TypeScript runtimes

Compiling a standalone executable using modern JavaScript/TypeScript runtimes

We have the same code working using node, deno, and bun.

E.g.,

bun run index.js
@geta6
geta6 / Gruntfile.coffee
Created December 3, 2013 08:39
おれのかんがえたさいきょうのGruntfile
###
Gruntfile by geta6
usage:
grunt only build
grunt server + watch
install:
npm i --save-dev \
grunt \
@shiumachi
shiumachi / Goでmecabを使う
Last active December 25, 2015 11:59
#gocon 2013 Autumn での成果物。
* go のコンパイル
brew のインストールファイルにはファイルが欠けているものがあるので、ソースから go をビルドする必要がある
ソースは以下のコマンドでとってこれる。
$ hg clone -u release https://code.google.com/p/go
GOROOTの変更を忘れずに。
@geta6
geta6 / ma.html
Created September 22, 2013 09:43
<html>
<body onload='init()'>
<button id='b'>BEEEER</button>
<button id='c'>CABBBB</button>
<button id='e'>EGGGGG</button>
<script>
init = function () {
var b = new Audio('./beer.mp3');
var c = new Audio('./cabbage.mp3');
var e = new Audio('./egg.mp3');
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
jade:
compile:
files: [{
expand: yes
cwd: 'assets/'
src: [ '*.jade' ]
@willurd
willurd / web-servers.md
Last active April 8, 2026 23:17
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@hakobe
hakobe / main.md
Last active December 20, 2018 04:44
Kyoto.js #7 何がMVCをつなげているのか

何がMVCをつなげているのか

クライアントサイドMVC

  • buzzwordっぽい
  • Backbone.js Angular.js Knockout.js Ember.js とか
  • 使ってますか?
    • はてなでも一部本番運用/社内向けツールではよくみる
  • クライアントサイドMVCフレームワークを利用するとMVCによる設計方針を簡単に使うことができるようになる
@matope
matope / NoSQLデータモデリング技法.markdown
Created April 16, 2012 03:35
NoSQLデータモデリング技法

#NoSQLデータモデリング技法

原文:NoSQL Data Modeling Techniques « Highly Scalable Blog

I translated this article for study. contact matope[dot]ono[gmail] if any problem.

NoSQLデータベースはスケーラビリティ、パフォーマンス、一貫性といった様々な非機能要件から比較される。NoSQLのこの側面は実践と理論の両面からよく研究されている。ある種の非機能特性はNoSQLを利用する主な動機であり、NoSQLシステムによく適用されるCAP定理がそうであるように分散システムの基本的原則だからだ。一方で、NoSQLデータモデリングはあまり研究されておらず、リレーショナルデータベースに見られるようなシステマティックな理論に欠けている。本稿で、私はデータモデリングの視点からのNoSQLシステムファミリーの短い比較といくつかの共通するモデリングテクニックの要約を解説したい。

本稿をレビューして文法を清書してくれたDaniel Kirkdorfferに感謝したいと思う

@kirbysayshi
kirbysayshi / mass-aggregation-change.sh
Created November 23, 2011 17:14
quick examples of how to change many many wsp (graphite/whisper) files settings
for f in $(find $1 -iname "*.wsp"); do
if [ -a $f ];
then /opt/graphite/bin/whisper-set-aggregation-method.py $f max;
fi;
done
@rummelonp
rummelonp / oauth.yml
Created March 29, 2011 03:58
Userstreamからふぁぼられとかを監視とかしてGrowlとかするかもしれないRubyスクリプト
---
:consumer_key: consumer_key
:consumer_secret: consumer_secret
:oauth_token: oauth_token
:oauth_token_secret: oauth_token_secret