Skip to content

Instantly share code, notes, and snippets.

👌
I'm OK

Kei Son heycalmdown

👌
I'm OK
Block or report user

Report or block heycalmdown

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View days.md

<script> const now = new Date(); const e = new Date(2009, 6, 1); const ediff = now - e; const d = document.getElementById("day"); d.innerText = [ "Working at EA ", Math.round(ediff / 1000 / 60 / 60 / 24) + " days" ].join(' ');
View merger.js
const inHousePackages = [
'@island/auth',
'@island/base',
'@island/garena',
'@island/gateway',
'@island/log',
'@island/mobile-tencent',
'@island/nexon-ngs',
'@island/nexon',
'@island/push',
View island-types-to-next.js
const fs = require('fs');
const package = require('./package.json');
Object.keys(package.devDependencies).forEach(packageName => {
if (packageName.startsWith('@island/')) {
package.devDependencies[packageName] = 'next';
}
});
fs.writeFileSync('./package.json', JSON.stringify(package, null, 2) + '\n');
View nexter.js
const json = require('./package.json');
Object.keys(json.dependencies).forEach(i => {
if (isInHousePackage(i)) {
json.dependencies[i] = 'next';
}
});
Object.keys(json.devDependencies).forEach(i => {
if (isInHousePackage(i)) {
json.devDependencies[i] = 'next';
}
View dev-ver.js
process.env.WORKSPACE = process.env.WORKSPACE || '.';
const p = require(process.env.WORKSPACE + '/package.json');
const n = new Date();
const d = new Date(+n - (n.getTimezoneOffset() * 60000));
const v = p.version.split('-')[0] + '-dev.' + d.toISOString().slice(0, 10);
console.log(p.version, '->', v);
p.version = v;
const exec = require('child_process').execSync;
const fs = require('fs');
@heycalmdown
heycalmdown / island-docker-entrypoint.sh
Created Oct 18, 2016
docker-entrypoint.sh for *-island
View island-docker-entrypoint.sh
#!/bin/bash
set -e
if [ "$1" = "--help" ]; then
echo "--help"
echo "--version"
exit
fi
if [ "$1" = "--version" ]; then
You can’t perform that action at this time.