Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

djyugg djyugg

🎯
Focusing
View GitHub Profile
@djyugg
djyugg / version_up.sh
Last active Jan 12, 2021
Update Android build.gradle for versionCode and versionName
View version_up.sh
#!/bin/sh
# versionName
APP_VERSION_NAME=${1}
APP_BUILD_GRADLE=./app/build.gradle
# replace versionCode
CURRENT_VERSION_CODE=`grep versionCode ${APP_BUILD_GRADLE} | sed 's/ *//' | cut -d' ' -f2`
NEXT_VERSION_CODE=`expr ${CURRENT_VERSION_CODE} + 1`
View Vagrantfile_template
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "vm_name" do |vm_name|
vm_name.vm.box = "ubuntu/trusty64"
View WorksheetManager.cls
Option Explicit
'処理対象ワークシートオブジェクト
Private Worksheet As Worksheet
'現在参照している行
Private currentRow As Integer
'始めに参照する行
Private initRow As Integer
'行にデータが入っているときに、必ず値が入力されている箇所(データ有無の判定,検索条件に利用
Private keyCol As Integer
View login_check.ttl
wait '$' '#'
sendln ''
sendln ''
sendln ''
sendln 'date'
sendln ''
sendln ''
sendln ''
sendln 'id'
sendln ''
View poh05_1.php
<?php
$inputLines = fgets(STDIN);
for ($i = 0; $i < mb_strlen($inputLines); $i += 2) {
echo substr($inputLines, $i, 1);
}
View poh05_2.php
<?php
class Sales_Sum
{
const WEEK_DAYS = 7;
private $_weekNum;
private $_salesOfDays = [0, 0, 0, 0, 0, 0, 0];
function __construct($inputDays)
{
@djyugg
djyugg / poh05_4.php
Created May 21, 2015
レナルート
View poh05_4.php
<?php
class Table
{
private $_row;
private $_column;
private $_field = [];
public function __construct($column, $row)
{
View poh05_4.js
var readline = require('readline').createInterface(process.stdin, process.stdout);
var inputs = [];
function BombApplication(inputs) {
var appProperties = inputs.splice(0, 1).toString().split(' ');
this.lineNum = +appProperties[0];
this.lineLength = +appProperties[1];
this.lines = [];
View poh05_2.js
var readline = require('readline').createInterface(process.stdin, process.stdout);
var inputs = [];
var ONE_WEEK_DAYS = 7;
readline.on('line', function (line) {
inputs.push(+line);
});
var createWeekInput = function (inputs) {
View poh05_1.js
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
var displayCharacters = Array.prototype.filter.call(chunk, function (s, i) {
return (i % 2) === 0;
});
console.log(displayCharacters.join().replace(/,/g, ""));