Skip to content

Instantly share code, notes, and snippets.

View gam0022's full-sized avatar
😇
なの

がむ gam0022

😇
なの
View GitHub Profile
@jessykate
jessykate / Jekyll nd Octopress Liquid tag for MathJax.rb
Created February 18, 2011 23:37
A simple liquid tag for Jekyll/Octopress that converts {% m %} and {% em %} into inline math, and {% math %} and {% endmath %} into block equations, by replacing with the appropriate MathJax script tags.
module Jekyll
class MathJaxBlockTag < Liquid::Tag
def render(context)
'<script type="math/tex; mode=display">'
end
end
class MathJaxInlineTag < Liquid::Tag
def render(context)
'<script type="math/tex">'
end
@andyferra
andyferra / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@havenwood
havenwood / additional_hash_methods.rb
Last active December 13, 2015 19:39
Hash#map_value, Hash#map_key, Hash#map_pair.
class Hash
def map_value
each_pair.with_object({}) do |(key, value), result|
result[key] = yield value
end
end
def map_key
each_pair.with_object({}) do |(key, value), result|
result[yield key] = value
GPA制度によって変わること

筑波大学は最近二学期制へと移行しはじめていて、色々大変なことになっています。 それと同時に GPA制度 なるものも導入されようとしています。 このGPA制度は平成25年度以降入学者用ですので、 現在在学している人間には関係のないことだと思います。

ここに書いてあることは、正しいつもりですが、

@tsupo
tsupo / Twitter_API_1.1_rate_limit.txt
Created May 17, 2013 05:12
Twitter API 1.1 / 実行回数制限
Twitter API 1.1 の現行APIの制限
(REST API v1.1 Limits per window by resource)
https://dev.twitter.com/docs/rate-limiting/1.1/limits
・15分辺り最大何回実行できるか
Timelines
GET statuses/mentions_timeline 15回
GET statuses/user_timeline 180回/user, 300回/application

C++初心者がC++を使って競技プログラミングするための備忘録のようなもの

この記事は、C++ (fork) Advent Calendar 2013の12日目の記事です。

はじめに

記事を書く人が居ないみたいなので、C++初心者ですが箸休め的な記事を書こうと思い立ち、いざ書き上げてみたら思いの外長くなりました。

この記事は、C++初心者な著者が、C++を用いて競技プログラミングをするために、調べたことや試した事などのまとめです。 記事中に誤り、問題点やご指摘、ご質問等ありましたら、@rigibunまでご連絡下さい(特にpush_bach)

githubのmarkdownを使いたかったことと、変更履歴が見られることからgistで書きました。

@tmr111116
tmr111116 / gist:8282663
Created January 6, 2014 13:09
デフォルトの Mac で UTF-8 の BOM をつけるコマンド
cat <(printf "\xEF\xBB\xBF") 元のUTF-8ファイル.txt > BOM付きUTF-8ファイル.txt
@himaratsu
himaratsu / confwd_ninjinkun.md
Last active May 24, 2020 06:15
GitHub活動を通して個人のキャリアを詰みつつ仕事の成果を出す方法
@azrsjp
azrsjp / dtm.markdown
Last active April 3, 2024 14:11
究極初心者がとりあえず聴けるレベルの曲を作れるようになるまで

究極初心者がとりあえず聴けるレベルの曲を作れるようになるまで

@azrsjp です。これは,DTM Advent Calendar 2015の19日目の記事です。

はじめに

本記事はDTM究極初心者が「こういうことをしたらとりあえず前よりは聞ける曲が完成させられるレベルになれた」という思い出話を綴ります。あくまで思い出話です。思い出話。今現在DTMに興味があるけど,何をしたらいいかわからない,__センスがないのでは…__と悩んでる方に,センスがなくても,まぁ形にはなるということを示し,希望を持って頂くために書きます。

この記事を読んで幸せになる人物像は以下のような方(昔の僕)

  • DTMでオリジナル曲を作りたい
  • DTMによる曲がどういう風にできているか大体の想像はつく(DAWというソフトがあり,ピアノロールで打ち込んで曲を表現する等)
@kaneta1992
kaneta1992 / three.js memo
Created January 10, 2016 10:59
three.js glsl組み込み定義
1: precision highp float;
2: precision highp int;
3: #define SHADER_NAME ShaderMaterial
4: #define VERTEX_TEXTURES
5: #define GAMMA_FACTOR 2
6: #define MAX_DIR_LIGHTS 0
7: #define MAX_POINT_LIGHTS 0
8: #define MAX_SPOT_LIGHTS 0
9: #define MAX_HEMI_LIGHTS 0
10: #define MAX_SHADOWS 0