Skip to content

Instantly share code, notes, and snippets.

View 44uk's full-sized avatar
♨️
ズイ₍₍(ง˘ω˘)ว⁾⁾ズイ

Yoshiyuki IEYAMA 44uk

♨️
ズイ₍₍(ง˘ω˘)ว⁾⁾ズイ
View GitHub Profile
@koseki
koseki / sendgmail.rb
Created March 27, 2009 16:59
rubyで日本語のメール送信
# Send Japanese mail using Gmail SMTP server. You need tlsmail.
# $ sudo gem install tlsmail
require "rubygems"
require "tlsmail"
require "nkf"
require "net/smtp"
def sendgmail(from, to, subject, body, user, pass, host = "smtp.gmail.com", port = 587)
body = <<EOT
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@tily
tily / scaling_isomorphic_javascript_code.ja.markdown
Last active May 1, 2023 09:03
サバクラ両方で動く JavaScript の大規模開発を行うために

サバクラ両方で動く JavaScript の大規模開発を行うために

原文:Scaling Isomorphic Javascript Code (This is just for study, please contact me at tily05 atmark gmail.com if any problem.)

考えてみれば Model-View-Controller とか MVC ってよく聞くよね。実際どんなものか知ってる? 抽象的に言うなら「オブジェクト情報の保持されるグラフィック・システム (つまり、ラスターではないグラフィック。ゲームとか) 上に構築された、表示系を中心としたアプリケーションにおいて、主要な機能どうしの関わりをうまく分離すること」とでも言おうか。もう少し深く考えを押し進めてみれば、これは当然、他のさまざまなアプリケーションにもあてはまる言葉 (bucket term ?) だ。

過去に多くの開発コミュニティが MVC による解決案を提供し、それによってよくあるユースケースにうまく対処し、地位を築くことができた。例をあげるなら、Ruby や Python コミュニティは Rails や Django を作り、MVC アーキテクチャを実現した。

@burke
burke / 0-readme.md
Created January 27, 2012 13:44 — forked from funny-falcon/cumulative_performance.patch
ruby-1.9.3-p327 cumulative performance patch for rbenv

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@taichi
taichi / install_phabricator_to_ubuntu12.04.1.md
Last active February 12, 2016 06:08
phabricator を ubuntu12.04.01 LTS にインストールした。(2013/02)

phabricator を ubuntu12.04.01 LTS にインストールした。(2013/02)

参考資料

事前準備

Distributor ID: Ubuntu
Description:    Ubuntu 12.04.1 LTS
Release:        12.04
@jmblog
jmblog / gist:6077993
Last active November 22, 2021 08:37
所得税と住民税の計算方法

所得税(国税)

所得税の計算方法

所得税額 = (所得金額(A) - 所得控除額(B)) × 税率 - 税額控除額(C)

  • 「所得金額(A)- 所得控除額(B)」は 課税所得金額 といい、1,000円未満の端数を切り捨てる。

所得税の税率

@voluntas
voluntas / shiguredo_env.rst
Last active April 16, 2024 13:18
時雨堂を支える環境

時雨堂を支える環境

日時:2024-04-16
作:時雨堂
バージョン:2024.2
url:https://shiguredo.jp/

2024-04 時点で従業員は全員フルリモート勤務中

@yalab
yalab / bootstrap-bower-template.rb
Last active December 22, 2015 12:29
Rails template for use bower-rails and bootstrap3.
options = @options.dup
options['skip_bundle'] = true
@options = options
gsub_file 'Gemfile', 'jquery-rails', 'bower-rails'
file 'Bowerfile', <<-CODE
asset 'jquery'
asset 'jquery-ujs'
asset 'bootstrap', '>= 3.0.0'
CODE
@altherlex
altherlex / description_component.rb
Last active February 13, 2017 20:23
Simple_form in show
#config/initializers/simple_form/description_component.rb
module SimpleForm
module Components
# Needs to be enabled in order to do automatic lookups
module Description
# Name of the component method
def desc(wrapper_options = nil)
object.send(attribute_name) if @builder.instance_variable_get('@lookup_action') == :show
end
end
@mizchi
mizchi / 「フロントエンドデベロッパー面接時の質問事項」への解答.md
Last active February 15, 2024 21:29
「フロントエンドデベロッパー面接時の質問事項」への解答