This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@use "sass:math"; | |
@function precision($num, $digit: 2) { | |
$multiplier: math.pow(10, $digit); | |
@return math.div(math.round($num * $multiplier), $multiplier); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# e.g ./github-migration.sh csvfile | |
# e.g ./github-migration.sh ./repositories.csv | |
csvFile=$1 | |
while read row; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const disableLog = () => { | |
const logger = console.log | |
console.log = (...args) => { | |
if (args[0] !== 'THREE.WebGLRenderer') { | |
logger(...args) | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sqrt(x) | |
return math(x, 'sqrt') | |
//powは使えないっぽい?かわりに**で2乗をつかう | |
//例) | |
p(sqrt(4**2+3**2)) -> 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@see https://css-tricks.com/snippets/html/base64-encode-of-1x1px-transparent-gif/ | |
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"> | |
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bag-char { | |
text-shadow: 2px 0px 0px #4d4d4d, -1.74661px -0.97435px 0px #4d4d4d, 1.05064px 1.70181px 0px #4d4d4d, -0.08846px -1.99804px 0px #4d4d4d, -0.89615px 1.78799px 0px #4d4d4d, 1.65367px -1.12488px 0px #4d4d4d, -1.99218px 0.17674px 0px #4d4d4d, 1.82588px 0.81619px 0px #4d4d4d, -1.19692px -1.60231px 0px #4d4d4d, 0.26467px 1.98241px 0px #4d4d4d, 0.73464px -1.86019px 0px #4d4d4d, -1.5478px 1.26662px 0px #4d4d4d, 1.96876px -0.35209px 0px #4d4d4d, -1.89086px -0.65165px 0px #4d4d4d, 1.33383px 1.49027px 0px #4d4d4d, -0.43882px -1.95127px 0px #4d4d4d, -0.56738px 1.91783px 0px #4d4d4d; | |
color: #fff; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@see http://ikeryou.jp/log/?p=146 | |
var hoge = 12.345; | |
var hoge2 = ~~(hoge); | |
console.log(hoge2); // 12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @see http://unstandard.info/journal/background-color/ | |
* #AARRGGBBで記述 | |
* ・「AA」は透明度、”ff”で不透明、”00″で透明。 | |
*/ | |
.bg_opacity { | |
background-color: rgba(9, 60, 111, 0.6); | |
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(StartColorStr='#99093C6F',EndColorStr='#99093C6F')" /* IE8 */; | |
filter: progid:DXImageTransform.Microsoft.gradient(StartColorStr='#99093C6F',EndColorStr='#99093C6F'); /* lte IE7 */ | |
} |