Skip to content

Instantly share code, notes, and snippets.

View naturallucky's full-sized avatar

naturallucky naturallucky

View GitHub Profile
@naturallucky
naturallucky / videoSpeedChanger_bookmarklet
Last active June 11, 2021 03:47
bookmarklet for youtube (Enhance for youtube)
javascript:(function (){ var v = document.querySelector('video');v.playbackRate = 1.0;})();
@naturallucky
naturallucky / vba
Last active November 2, 2020 01:20
[EXCEL VBA]Set cell background color as the cell value like #88dd8f in Selection Range
Sub セルから背景色設定()
'
' 選択範囲のそれぞれのセルの値から、そのセル自身に背景色設定 Macro
' cell : "#0fa" "#00ffdd" , "33,44,44" / and "123,212,213" too (^^;> excel vba 2016
Dim c As Range
Dim v, vt, vtt As String
Dim l As Long
Dim r, g, b As Integer
Dim reRGB, reSharp6, reSharp3 As Object 'New RegExp
@chooblarin
chooblarin / calculate.js
Last active July 17, 2022 03:53
四則演算器 (JavaScript ver.)
/*
四則演算器プログラムです.
ex.) caluculate('1+2*3'); // => 7
caluculate('(1+2)*3') // => 9
* 有理数は未実装
*/
// 演算子たち
@seraphy
seraphy / mod.sql
Created April 18, 2014 09:43
Apache Derbyのカラムサイズの変更のALTER文
alter table TESTTBL alter column MYCOL1 set data type varchar(1000);
@STAR-ZERO
STAR-ZERO / gist:3413415
Created August 21, 2012 08:13
【Android】画像を縮小して読み込み、画像リサイズ
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
/**
* 画像変換クラス
*
*/
public class BitmapUtil {
@deenseth
deenseth / gist:1514633
Created December 23, 2011 16:23
Add Google Calendar Event Bookmarklet
javascript: var s;
/*Figure out the selected text*/
if ( window.getSelection ) {
s = window.getSelection();
} else if ( document.getSelection ) {
s = document.getSelection();
} else {
s = document.selection.createRange().text;
}
/*If there isn't any text selected, get user input*/