Skip to content

Instantly share code, notes, and snippets.

View sotayamashita's full-sized avatar
πŸ’­
May be slow to respond

Sam Yamashita sotayamashita

πŸ’­
May be slow to respond
View GitHub Profile
@sotayamashita
sotayamashita / package.json
Last active December 4, 2018 07:07
TIL: Check ruby syntax against staged git files and don't let πŸ’© slip into your code base with husky and lint-staged
{
"devDependencies": {
"husky": "^1.2.0",
"lint-staged": "^8.1.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
@sotayamashita
sotayamashita / 05_shoryuken_setup.config
Last active December 4, 2018 05:25
Setup shoryuken on Elastic Beanstalk
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_shoryuken":
mode: "000777"
content: |
EB_SCRIPT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k script_dir)
EB_SUPPORT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k support_dir)
. $EB_SUPPORT_DIR/envvars
. $EB_SCRIPT_DIR/use-app-ruby.sh
mkdir -p /var/app/support/pids
@sotayamashita
sotayamashita / 00README.md
Last active November 29, 2018 12:44
Robotframework + Google Chrome (headless)
  1. Install Robot Framework
  2. Install SeleniumLibrary
@sotayamashita
sotayamashita / README.md
Created September 7, 2018 09:09
List of awesome software testing conferences

This is a curated list of awesome conferences mostly related (but not limited) to the software testing. I've made this list to better keep track of the conferences.

2019

Question

function func() {                
  if (true) {                    
    var message1 = "hello world" 
    let message2 = "good night"  
  }                              
  console.info(message1)         
  console.info(message2)         
@sotayamashita
sotayamashita / i18n.md
Last active March 12, 2018 06:31
Node.js community localization problems (in my opinion)

Before digging deep, we need to clear problems for community localization:

  1. NO way to know the diff between a source and localized one
  2. NO a localization workflow

1. NO way to know the diff between a source and localized one

-> I hope it can be solved with Crowdin.

2. NO a localization workflow

@sotayamashita
sotayamashita / README.md
Last active May 21, 2018 15:38
TIL: A shortcut to get PostgreSQL interactive terminal when you are in dockerized project
docker exec -it $(docker ps -a | grep <CONTAINER NAME> | awk '{print $1}') psql -d <DATABASE NAME> -U postgres
@sotayamashita
sotayamashita / ddd.md
Created December 21, 2017 08:00 — forked from zsup/ddd.md
Documentation-Driven Development (DDD)

Documentation-Driven Development

The philosophy behind Documentation-Driven Development is a simple: from the perspective of a user, if a feature is not documented, then it doesn't exist, and if a feature is documented incorrectly, then it's broken.

  • Document the feature first. Figure out how you're going to describe the feature to users; if it's not documented, it doesn't exist. Documentation is the best way to define a feature in a user's eyes.
  • Whenever possible, documentation should be reviewed by users (community or Spark Elite) before any development begins.
  • Once documentation has been written, development should commence, and test-driven development is preferred.
  • Unit tests should be written that test the features as described by the documentation. If the functionality ever comes out of alignment with the documentation, tests should fail.
  • When a feature is being modified, it should be modified documentation-first.
  • When documentation is modified, so should be the tests.

Strikethrough

@sotayamashita
sotayamashita / emojis.json
Created December 18, 2017 10:59 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "πŸ‘©β€πŸ‘©β€πŸ‘§β€πŸ‘§", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "p", "order": ""},
{"emoji": "πŸ‘©β€πŸ‘©β€πŸ‘§β€πŸ‘¦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "p", "order": ""},
{"emoji": "πŸ‘©β€πŸ‘©β€πŸ‘¦β€πŸ‘¦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "&#128105;&zwj;&#128105;&zwj;&#128102;&zwj;&#128102;", "category": "p", "order": ""},
{"emoji": "πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘§", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "&#128104;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "p", "order": ""},
{"emoji": "πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦", "name": "family_children", "shortname": "", "unicode": "", "html": "&#128104;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "p", "order": ""},
{"emoji": "πŸ‘¨β€πŸ‘©β€πŸ‘¦β€πŸ‘¦", "name": "family_two_biys", "shortname": "", "unicode": "", "html": "&#128104;&zw