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 / 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
@sotayamashita
sotayamashita / nginxproxy.md
Created November 4, 2016 03:13 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

❯ npm cache clean; and rm -rf node_module 

❯ yarn
yarn install v0.15.1
info No lockfile found.
[1/4] πŸ”  Resolving packages...
warning gulp-environments > gulp-if > gulp-match > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp-sass-bulk-import > glob > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp-csscomb > csscomb > csscomb-core > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue