Skip to content

Instantly share code, notes, and snippets.

Avatar
📱
(╯°□°)╯︵ ┻━┻

Aaron Lee apparition47

📱
(╯°□°)╯︵ ┻━┻
View GitHub Profile
@apparition47
apparition47 / answer.js
Created Dec 7, 2019
LeetCode 418 Sentence Screen Fitting
View answer.js
function * sent(sentence) {
while (1) {
for (i=0; i<sentence.length; i++) {
yield sentence[i]
}
}
}
const fits = (rows, cols, sentence) => {
let placements = 0
@apparition47
apparition47 / shinseibank.user.js
Last active Jun 14, 2018
Shinsei Bank Userscript - Login helper with optional Security Card auto-fill
View shinseibank.user.js
// ==UserScript==
// @name Shinsei Bank Helper
// @namespace https://gist.github.com/apparition47/e8671954c614385b78ed9e8b2cde98e6
// @version 0.6
// @description Disable Security Keyboard & Optional account/Security Card Login Auto-Fill
// @author apparition47
// @match https://*.shinseibank.com/FLEXCUBEAt/LiveConnect.dll*
// @match http://www.shinseibank.com/*
// @grant none
// ==/UserScript==
View .vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Original author:
" Amir Salihefendic
" http://amix.dk - amix@amix.dk
" http://amix.dk/vim/vimrc.html
"
" Sections:
" -> General
" -> VIM user interface
" -> Colors and Fonts
@apparition47
apparition47 / cloudflare_dyn_dns.sh
Last active Mar 4, 2018 — forked from chappy84/cloudflare_dyn_dns.sh
CloudFlare Dynamic DNS Shell Script
View cloudflare_dyn_dns.sh
#!/bin/sh
#
# CloudFlare Dynamic DNS
#
# Updates CloudFlare records with the current public IP address
#
# Takes the same basic arguments as A/CNAME updates in the CloudFlare v4 API
# https://www.cloudflare.com/docs/client-api.html#s5.2
#
# Use with cron jobs etc.
@apparition47
apparition47 / randomWord.swift
Last active Jan 16, 2017 — forked from emersonbroga/randomWord.swift
Swift Random Word Generator
View randomWord.swift
//Inspired by: http://planetozh.com/blog/2012/10/generate-random-pronouceable-words/
func randomWord(wordLength: Int = 6) -> String {
let kCons = 1
let kVows = 2
var cons: [String] = [
// single consonants. Beware of Q, it"s often awkward in words
"b", "c", "d", "f", "g", "h", "j", "k", "l", "m",
"n", "p", "r", "s", "t", "v", "w", "x", "z",
@apparition47
apparition47 / dev_jobs_in_japan.md
Last active Apr 8, 2021 — forked from anonymous/dev_jobs_in_japan.md
Software dev jobs in Japan
View dev_jobs_in_japan.md

Companies

  • Abeja - Start-up that does analysis of people's shopping patterns in stores using cameras and stuff, sounds interesting; might not require Japanese
  • Amazon - I THINK they now hire some developers
  • Barclays - Self-explanatory; nice Mori Tower office
  • Cookpad - Insanely popular recipe sharing service; I've heard it's kind of black from multiple Japanese people, but there are definitely good positions for foreigners; sweet Ebisu Garden Place office
  • Crowdworks - Crowdsourcing, kind of like Japanese MechanicalTurk; very profitable
  • CyberAgent (and CyberZ) - Big company; rich as hell; lots of foreigners; considered one of the best mid-sized Japanese tech companies to work for
  • Degica - eCommerce plat
View ListAtDepthBtree.java
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Queue;
public class ListAtDepthBtree {
ArrayList al = new ArrayList();
public void levelOrder(Node root){
int h = height(root);
@apparition47
apparition47 / ncix_rewards.js
Last active Apr 3, 2017
NCIX.com Newsletter Rewards Claimer
View ncix_rewards.js
/**
* CasperJS script to claim NCIX.com newsletter points by batch of emails.
* Takes newsletter email URL as CLI argument.
* All emails filled in below must be registered to NCIX.com.
*
* For demo purposes only.
*/
var emails = [
'ncix_registerd@example.net',
View centos-install-casperjs
# 32-bit
wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-i686.tar.bz2
bunzip2 phantomjs-1.9.2-linux-i686.tar.bz2
tar xf phantomjs-1.9.2-linux-i686.tar
mv phantomjs-1.9.2-linux-i686/ /opt/
ln -s /opt/phantomjs-1.9.2-linux-i686/ /opt/phantomjs
ln -s /opt/phantomjs/bin/phantomjs /usr/local/bin/
#check what you've just done
which phantomjs
@apparition47
apparition47 / index.js
Last active Aug 29, 2015 — forked from andy-berry-dev/index.js
iPhone 6 Availability Checker
View index.js
/**
* Node script to query the apple stock JSON blob and report which stores have iphone 6 stock
* Change the model nums and models below.
*
* Based on work done by andyberry88 and jbrooksuk
*/
var https = require('https');
var Notification = require('node-notifier');
var Repeat = require('repeat');