http://www.nicovideo.jp/watch/1380872606
上記の動画を例にDL方法を解説する。
パラメータの取得
(defmacro def-print-string (name string) | |
`(defun ,name () | |
(let ((one (count t'(t)))) | |
(coerce | |
(mapcar #'code-char | |
(list | |
,@(loop :for i :across string | |
:collect | |
`(+ ,@(loop :for j := (char-code i) :then (floor j #.(count t'(t t))) |
(defun jshint (&optional (filename (get-buffer-file-name))) | |
"jscript-mode: このファイルの文法チェック" | |
(interactive) | |
(let (command | |
(bufname "*JSHint*") | |
(noerror-message "No errors detected") | |
buf | |
line | |
col | |
(error-message nil)) |
#include <memory> | |
#include <cstdio> | |
struct year{year(){ std::printf("あけましておめでとうございます.\n"); };}; | |
using A = std::unique_ptr<year>; | |
int main() | |
{ | |
A happy {new year}; |
;;; -*- mode: lisp; package: user -*- | |
#| | |
使い方(暫定): | |
1. どこかへ framework.l と nanri-master-change-tests.l をダウンロード | |
2. M-x load-file | |
load file: path/to/framework.l | |
3. M-x load-test-file | |
test file: path/to/nanri-master-change-tests.l | |
4. M-x change-tests |
;; -*- mode:lisp; package:markdown-mode -*- | |
;; markdown.l ( http://www.geocities.jp/kiaswebsite/xyzzy/markdown.html ) | |
;; Rev: 227 を元に改変 | |
;; | |
;; License | |
;; ======= | |
;; | |
;; Copyright (c) 2011 Yousuke Ushiki <citrus.yubeshi@gmail.com> | |
;; Copyright (c) 2005,2006 kia |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "librtmp/rtmp.h" | |
int main(int argc, char *argv[]) { | |
if (argc < 3) { | |
printf("usage : %s url ticket\n", argv[0]); | |
return 1; | |
} |
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{16d51579-a30b-4c8b-a276-0ff4dc41e755}\ProgID] | |
@="Chakra" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{16d51579-a30b-4c8b-a276-0ff4dc41e755}\ProgID] | |
@="Chakra" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Chakra] | |
@="JScript Language" |
#!/bin/sh | |
# Use like this: | |
# | |
# minify-js.sh < app.js > app.min.js | |
# | |
curl -s \ | |
-d compilation_level=SIMPLE_OPTIMIZATIONS \ | |
-d output_format=text \ |
# INSTRUCTIONS: save as ~/.gdbinit | |
# REVISION : 6.1 | |
# CONTRIBUTORS: mammon_, elaine, pusillus, mong | |
# NOTES: 'help user' in gdb will list the commands/descriptions in this file | |
# 'context on' now enables auto-display of context screen | |
# | |
# CHANGELOG: | |
# Version 6.1 | |
# fixed filename in step_to_call so it points to /dev/null | |
# changed location of logfiles from /tmp to ~ |