Skip to content

Instantly share code, notes, and snippets.

View JUNKI555's full-sized avatar
😂

JUNYA KITAYAMA JUNKI555

😂
View GitHub Profile
@voluntas
voluntas / working_time.rst
Last active June 15, 2025 09:40
時雨堂を支える固定時間労働 1 日 6 時間

時雨堂を支える固定時間労働 1 日 6 時間

更新:2024-01-20
作者:@voluntas
バージョン:2024.1
URL:https://voluntas.github.io/

概要

function write_ws_xml_datavalidation(validations) {
var o = '<dataValidations>';
for(var i=0; i < validations.length; i++) {
var validation = validations[i];
o += '<dataValidation type="list" allowBlank="1" sqref="' + validation.sqref + '">';
o += '<formula1>&quot;' + validation.values + '&quot;</formula1>';
o += '</dataValidation>';
}
o += '</dataValidations>';
return o;
@amratab
amratab / heroku_multiple_remotes_multiple_branches
Created May 30, 2017 04:30
Adding multiple heroku apps to a single repository different branches
Suppose you have two heroku remote apps
myapp-dev & myapp-prod
and two git branches
master(for dev) & production
Now lets setup heroku on the existing git repo in your local machine
Assuming the branches and the apps exist already
git remote add heroku-myapp-dev https://git.heroku.com/myapp-dev.git
git remote add heroku-myapp-prod https://git.heroku.com/myapp-prod.git
@oh-sky
oh-sky / jobcan-shutsutaikin-henshu.js
Last active May 16, 2019 06:47
ジョブカンの出退勤編集画面の入力をサポートするジャバスクリプト(bookmarklet)
void((function() {
var editJikoku = function (jikoku) {
return function () {
var inputForm = jQuery(this);
if (inputForm.parents('tr').css('background-color') != 'transparent') {
return;
}
if (inputForm.val() != jikoku) {
inputForm.val(jikoku);
inputForm.css('background-color', '#fcc');
@yyoda
yyoda / regedit-runas-vs2017.ps1
Created April 5, 2017 04:03
Visual Studio 2017 を管理者モードで起動させるためのスクリプト
<#
Visual Studio 2017 を管理者モードで起動させるためのスクリプト
#>
$path = "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"
$key_devenv = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe"
$key_vslauncher = "C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\VSLauncher.exe"
$value = "RUNASADMIN"
$type = "String"
@shyazusa
shyazusa / 絵文字でコミットコメント.md
Created September 16, 2016 00:10
絵文字でコミットコメントする際のアレ
絵文字 コード 意味
🎨 :art: コードの書式や構造を改善したとき
🐎 :racehorse: パフォーマンスを改善したとき
🚱 :non-potable_water: メモリリークを修正したとき
📝 :memo: ドキュメントを書いたとき
🐧 :penguin: Linux 関連の修正をしたとき
🍎 :apple: Mac OS 関連の修正をしたとき
🏁 :checkered_flag: Windows 関連の修正をしたとき
🐛 :bug: バグを修正したとき
@linyows
linyows / .rubocop.yml
Created December 20, 2015 06:53 — forked from onk/.rubocop.yml
僕の使っている .rubocop.yml
# target_version:
# rubocop v0.34.2
# 自動生成されるものはチェック対象から除外する
AllCops:
Exclude:
- "vendor/**/*" # rubocop config/default.yml
- "db/schema.rb"
DisplayCopNames: true
@paulirish
paulirish / how-to-view-source-of-chrome-extension.md
Last active July 4, 2025 00:59
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@mnishiguchi
mnishiguchi / 20150805000000_create_social_profiles.rb
Last active December 27, 2020 05:10
Devise+OmniAuthでQiita風の複数プロバイダ認証 ref: https://qiita.com/mnishiguchi/items/e15bbef61287f84b546e
class CreateSocialProfiles < ActiveRecord::Migration
def change
create_table :social_profiles do |t|
t.references :user, index: true, foreign_key: true
t.string :provider
t.string :uid
t.string :name
t.string :nickname
t.string :email
t.string :url