uglifyjs src/js/input.js --compress drop_console=true --mangle -o build/js/output.js
This file contains 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
<?php | |
class Block | |
{ | |
private $index; | |
private $previousHash; | |
private $timestamp; | |
private $data; | |
private $hash; |
This file contains 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
<?php | |
require 'vendor/autoload.php'; | |
use PHPUnit\Framework\TestCase; | |
use Carbon\Carbon; | |
class Greeter | |
{ | |
/** | |
* PHP標準で用意されているDateTimeだと |
This file contains 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
class Bank { | |
constructor() { | |
this.rates = new Map(); | |
} | |
reduce(source, to) { | |
return source.reduce(this, to); | |
} | |
addRate(from, to, rate) { |
This file contains 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
<select name='alphabet' multiple='multiple'> | |
<option value='ABC'>えーびーしー</option> | |
<option value='DEF'>でーいーえふ</option> | |
<option value='GHI'>じーえいちあい</option> | |
<option value='JKL'>じぇーけーえる</option> | |
</select> |
This file contains 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
var arr = [ | |
{ | |
name: 'たなか', | |
sex: '男', | |
age: 15 | |
}, | |
{ | |
name: 'さとう', | |
sex: '女', | |
age: 20 |
This file contains 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 | |
# パッケージ更新 | |
yum -y update | |
# ロケール変更 | |
localedef -vc -i ja_JP -f UTF-8 ja_JP.UTF-8 | |
localectl set-locale LANG=ja_JP.utf8 | |
# タイムゾーン変更 |
This file contains 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
# % (String) - https://docs.ruby-lang.org/ja/latest/class/String.html#I_--25 | |
puts "%02d" % 0 # 00 | |
puts "%02d" % 9 # 09 | |
puts "%02d" % 99 # 99 | |
puts "%02d" % 100 # 100 | |
puts "%04d" % 0 # 0000 | |
puts "%04d" % 9 # 0009 | |
puts "%04d" % 99 # 0099 | |
puts "%04d" % 100 # 0100 | |
puts "%04d" % 9999 # 9999 |
This file contains 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
var MSG_HELLO = 'おはようございます(・∀・)\n勤怠管理システムからの打刻を忘れないようにしましょう!\n' + KINTAI_SYSTEM_URL; | |
var MSG_GOODBYE = 'おつかれさまでした(*´ω`*)\n勤怠管理システムからの打刻を忘れないようにしましょう!\n' + KINTAI_SYSTEM_URL; | |
function helloMessage() { | |
var client = ChatWorkClient.factory({token: TOKEN}); //チャットワークAPIトークン | |
client.sendMessage({ | |
room_id:ROOM_ID, //ルームID | |
body: MSG_HELLO | |
}); | |
} |
This file contains 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
package com.example.customlist; | |
import java.util.List; | |
import android.content.Context; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ArrayAdapter; | |
import android.widget.TextView; |
NewerOlder