Skip to content

Instantly share code, notes, and snippets.

View satoryu's full-sized avatar
🤘
Put your 🦊 up!

Tatsuya Sato satoryu

🤘
Put your 🦊 up!
View GitHub Profile
@syokunin
syokunin / validation.php
Last active December 30, 2021 02:45
Laravel 5.1 日本語バリデーションメッセージファイル
<?php // resources/lang/ja/validation.php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
@shyouhei
shyouhei / gist:0b7dab3e75bfbf96f895
Created March 31, 2015 15:26
新社会人の人が留意すべき事項

新社会人に必須である:

  • 勤務先との書面による「労働契約」。業務委託契約等NG。
  • 多寡を問わず毎月払われる給料。遅配等論外である。
  • 健康保険。
  • 労災保険。
  • 雇用保険。
  • 三六協定。
  • 年次有休。
  • 育児休業の制度があり取得者がいる会社に勤務する。
@joker1007
joker1007 / ginzarb_21.md
Last active April 14, 2021 06:41
Ginza.rb 21回の発表資料。rails_adminのつらみとオススメgem達。

rails_adminのつらみとオススメGemについて

rails_adminのつらみ

カスタマイズできるようで出来ない

レコード件数が一定以上になると使えない機能

  • ダッシュボード
  • 何も考えずに各モデルをカウントするのでレコード件数増えるとえらいことになる。
@imranity
imranity / groovy-create-user.md
Last active April 10, 2024 17:29
Jenkins Groovy enable security and create a user in groovy script

This is a snippet that will create a new user in jenkins and if security has been disabled , it will enable it :)

import jenkins.model.*
import hudson.security.*

def instance = Jenkins.getInstance()

def hudsonRealm = new HudsonPrivateSecurityRealm(false)
hudsonRealm.createAccount("MyUSERNAME","MyPASSWORD")
instance.setSecurityRealm(hudsonRealm)
勤務先:フォスターリンク株式会社
期間:2015年9月~
職歴:
■ 2021年6月~ : 人事情報管理システムの新規開発
・業務内容: 全工程
・ポジション: Webアプリケーションエンジニア、ネットワークエンジニア
・開発人数: 5名
・開発環境: Python/Tornado/TypeScript/React/minikube/Cloud Run/MySQL/MongoDB/GitHub/ArgoCD
・備考: 開発の他、GitHub ActionsによるCI/CDの導入やKubernetesによる開発環境、Cloud Runによる運用環境の構築など
-------------------------------
@cognitom
cognitom / h26tochijisen.csv
Created February 9, 2014 17:36
東京都知事選市区町村別得票データ (暫定) - 2014年2月
市区町村 ますぞえ 要一 宇都宮 けんじ 細川 護熙 田母神 としお 家入 かずま ドクター・中松
千代田区 9106 3303 5054 4082 499 373
中央区 23161 8430 11130 8980 1527 872
港区 34808 12968 19792 12738 2515 1073
新宿区 47568 23910 23949 17484 2928 1528
文京区 35767 19094 19416 12683 2092 1294
台東区 30465 12873 13654 10603 1466 1137
墨田区 43318 16661 15805 12785 1683 1400
江東区 85994 34553 30676 24372 3238 2733
品川区 61078 27925 27334 20133 3297 2052

A future version of Ember will come with a new templating engine known as HTMLBars.

The original motivation for HTMLBars was to allow helpers and properties to have better contextual information about what they were bound to.

So for example, consider a template like this:

<a href="{{url}}">{{link}}</a>
@branneman
branneman / better-nodejs-require-paths.md
Last active April 11, 2025 10:39
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@sorah
sorah / gist:7803201
Last active December 30, 2015 08:29 — forked from hsbt/gist:7719305
@jugyo
jugyo / gist:3662942
Created September 7, 2012 03:55
getting profile for rails
def prof(&block)
result = RubyProf.profile(&block)
filename = "result-#{Time.now.to_i}.html"
File.open(filename, 'w') do |file|
RubyProf::FlatPrinter.new(result).print(file, :min_percent => 1)
end
puts "=> #{filename}"
end
# Load the rails application