Skip to content

Instantly share code, notes, and snippets.

View shuyuhey's full-sized avatar

Shuhei TAKASUGI shuyuhey

View GitHub Profile
@shuyuhey
shuyuhey / meta.js
Created October 3, 2018 13:03
metaタグをnameで取得したいときに使う
const meta = name => {
const metas = document.head.children;
return Array.prototype.slice.call(metas).find(element => name === element.getAttribute('name'))
};
export default meta;
@shuyuhey
shuyuhey / FizzBuzz.java
Last active March 31, 2018 06:22
tddyyχ_2018-03-31
public class FizzBuzz {
public static String answer(int number) {
if (number % 15 == 0 ) {
return "FizzBuzz";
} else if (number % 3 == 0 ) {
return "Fizz";
} else if (number % 5 == 0) {
return "Buzz";
@shuyuhey
shuyuhey / LICENSE
Last active August 27, 2019 02:50
AppStoreのレビューをSlackに通知する
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit