- Install User JavaScript and CSS extension
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
| (() => { | |
| /** 出勤時刻 (HH:MM) */ | |
| const START_TIME = '10:00'; | |
| /** 退勤時刻 (HH:MM) */ | |
| const END_TIME = '19:30'; | |
| /** 退勤時刻のしきい値 (この時刻以降は退勤とみなす) */ | |
| const END_TIME_THRESHOLD = '17:00'; | |
| /** 勤務時間の変動幅の下限 (分単位) */ | |
| const WORKING_HOUR_FLUCTUATION_MIN = -30; | |
| /** 勤務時間の変動幅の上限 (分単位) */ |
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
| require 'yaml' | |
| CONFIG_FILE = ARGV[0] | |
| config = YAML.load_file(CONFIG_FILE) | |
| config['workflows'].each do |workflow_name, workflow| | |
| next unless workflow.is_a?(Hash) | |
| puts "### #{workflow_name}" |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # shellcheck disable=1091 | |
| source "$(dirname "$0")/shared.sh" | |
| # Funtions | |
| #----------------------------------------------- | |
| install_git_filter_repo() { |
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
| FROM ubuntu:16.04 | |
| RUN set -ex \ | |
| && apt-get update \ | |
| && apt-get install -y locales \ | |
| && locale-gen en_US.UTF-8 \ | |
| && update-locale LANG=en_US.UTF-8 \ | |
| && apt-get clean \ | |
| && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | |
| ENV LC_ALL C |
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
| import javax.crypto.Mac | |
| import javax.crypto.spec.SecretKeySpec | |
| import kotlin.experimental.and | |
| import kotlin.experimental.or | |
| fun hmacSha256(data: String, key: String): ByteArray { | |
| val algorithm = "HmacSHA256" | |
| val secretKeySpec = SecretKeySpec(key.toByteArray(), algorithm) | |
| val mac = Mac.getInstance(algorithm) | |
| mac.init(secretKeySpec) |
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
| document.querySelectorAll('tr[id^=tr_line_of_]').forEach(el => { | |
| const start = el.querySelector('input[name^=start]'); | |
| const end = el.querySelector('input[name^=end]'); | |
| const button = el.querySelector('.btn'); | |
| const holiday = el.querySelector('#uneditable_holiday'); | |
| if (!!start.value && !!end.value) { | |
| return; | |
| } | |
| if (holiday.innerText.match(/休/)) { |
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
| import Foundation | |
| public struct Swizzle { | |
| private init() {} | |
| public static func classMethod(_ cls: AnyClass, to: Selector, from: Selector) { | |
| let cls: AnyClass = object_getClass(cls)! | |
| let toMethod = class_getInstanceMethod(cls, to) | |
| let fromMethod = class_getInstanceMethod(cls, from) |
Wantedly is a Tokyo-based startup, founded in 2010 helps you discover jobs that ignite your passion. Our mission is to ’create a world where work drives passion.’
Wantedly aims to create a world where people can experience personal growth and development and contribute to society through their challenges of work.
Because your work takes up such a great portion of your life, we believe it must be exciting and worthwhile.
NewerOlder

