変数に関するメモ。 💤がついてるのはzsh 固有のもの。
- シェル変数 → 子プロセスに継承されない
- 環境変数 → 子プロセスに継承される
環境変数登録
-- Solarized color scheme for tym | |
color = {} | |
-- Solarized common | |
color.yellow = '#b58900' | |
color.orange = '#cb4b16' | |
color.red = '#dc322f' | |
color.magenta = '#d33682' | |
color.violet = '#6c71c4' |
#include <stdio.h> | |
#define STR2(x) #x | |
#define STR(x) STR2(x) | |
#ifdef _WIN32 | |
#define INCBIN_SECTION ".rdata, \"dr\"" | |
#else | |
#define INCBIN_SECTION ".rodata" | |
#endif |
diff --git a/input.c b/input.c | |
index d1ff17f..33fad13 100644 | |
--- a/input.c | |
+++ b/input.c | |
@@ -1805,6 +1805,7 @@ input_dcs_dispatch(struct input_ctx *ictx) | |
{ | |
const char prefix[] = "tmux;"; | |
const u_int prefix_len = (sizeof prefix) - 1; | |
+ u_char *p; | |
#!/usr/bin/env ruby | |
# coding: utf-8 | |
=begin | |
kometalk.rb | |
Copyright (c) 2015 IGARASHI Makoto (raccy) | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php | |
コマンドラインからの入力文字をOpen JTalkでしゃべってくれます。 | |
実行はすぐに終わって、裏でサーバが立ち上がって、しゃべります。 |
POST /v3/get HTTP/1.1
Host: getpocket.com
Content-Type: application/json
{"consumer_key":"1234-abcd1234abcd1234abcd1234",
"access_token":"5678defg-5678-defg-5678-defg56",
"count":"10",
public class Perlin { | |
public int repeat; | |
public Perlin(int repeat = -1) { | |
this.repeat = repeat; | |
} | |
public double OctavePerlin(double x, double y, double z, int octaves, double persistence) { | |
double total = 0; |
#!/usr/bin/env python | |
""" | |
This module sets up a video stream from internal or connected webcam using Gstreamer. | |
You can then take snapshots. | |
""" | |
import pygtk, gtk | |
import pygst | |
pygst.require("0.10") |