Skip to content

Instantly share code, notes, and snippets.

View t-nissie's full-sized avatar

Takeshi Nishimatsu t-nissie

View GitHub Profile
@mamemomonga
mamemomonga / arduino-cli.md
Created November 12, 2019 21:56
arduino-cliメモ

arduino-cliメモ

ArduinoチームがつくってるCLIのArduino

arduino-cli

事前準備

$ cd
$ mkdir bin
@mrkn
mrkn / zundoko.rb
Last active March 15, 2016 11:27
128バイトのズンドコキヨシ
z='ズン';d='ドコ';loop.lazy.map{[z,d].sample.tap{|x|$><<x}}.each_cons(5){|x|break if x.join==z*4+d};puts'キ・ヨ・シ!'
@takemi-ohama
takemi-ohama / shared.md
Last active July 5, 2022 23:08
[Linux]共有ディレクトリの実現方法

#TL;DR

  • 共有開発環境でgit cloneするディレクトリには、groupを設定してsetgid bitを付けるとよい。
  • 同時にumask を002にする。ちょっと怖い。
  • UPGに従えば怖くないらしい。

##課題

Webアプリ開発で、CIでdeployするほどでもない共有環境(客先やテスターに見せる画面とか)のdeployは直接git pullですませることが多い。 が、複数人で開発していると、そのままではgit pullする際にpermission deniedではじかれる。

redcaretとgithub-markdownの違い

  • 両者のソースは割りと似ている(github-markdownがredcarpetを元にしたのか、あるいは両者のもとになったC実装があるとかかな)

オプションについて

github-markdownは、redcapetの提供するオプションの一部をデフォルトで有効化します。 (ちなみに有効化するオプションを選ぶAPIはない模様。用途を考えるとそれで正しいが)

★がついているのが有効化されるもの。gfmモード(.render_gfmメソッド)の場合のみ、★★も有効化される。

@zph
zph / gist_error.md
Created January 24, 2013 01:58
Gist Error on Github

Error Description: Clicking on 'Your Gists' leads me to an error page.

Start Page: https://gist.github.com Login State: Logged In

Full Description: Clicking 'Your Gist' leads me to see the following error once the subsequent page loads (url: https://gist.github.com/zph)

'Whoops. We seem to have missed the gist of that gist you were looking for.'

@rummelonp
rummelonp / 0-README.md
Created December 23, 2012 19:33
CarbonEmacs から GNU Emacs for Mac にしたら日本語が破滅したので直した

CarbonEmacs から GNU Emacs for Mac にしたら日本語が破滅したので直した

CarbonEmacs(version 22)から GNU Emacs for Mac(version 24)にしたら日本語が破滅した

元々フォントの設定をしていなかったので CarbonEmacs がよしなにしてくれてたものがなくなり正常に表示されなくなったらしい

ひとまずアスキーをモナコ/日本語をヒラギノ角ゴProNに設定しといた

その他

@evertton
evertton / gfm2html.sh
Last active December 29, 2023 09:51
Convert a Github Flavored Markdown Syntax file to HTML
#!/bin/bash
# Convert a Github Flavored Markdown Syntax file to HTML
#
# The MIT License (MIT)
# Copyright © 2012 Evertton de Lima <e.everttonlima@gmail.com>
# http://evertton.mit-license.org/
# Stylesheet feature by Dan Untenzu <mail@pixelbrackets.de>
#
# Requirements: cURL (sudo apt-get install curl)
@certik
certik / Output
Created August 14, 2012 23:12
Unicode in Fortran
Ondřej Čertík
@johan
johan / octocat.svg
Created June 4, 2011 11:16
Github octocat avatar, SVG format
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.