Skip to content

Instantly share code, notes, and snippets.

@whileloop99
whileloop99 / README.md
Created January 8, 2023 15:48 — forked from anchan828/README.md
This is an improvement to allow @nestjs/typeorm@8.1.x to handle CustomRepository. I won't explain it specifically, but it will help in some way. https://github.com/nestjs/typeorm/pull/1233

You need to provide some classes and decorators yourself to maintain the same style as typeorm@2.x.

1. EntityRepository -> CustomRepository

@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}

Japanese

Accent Tips

促音(そく\おん・そくおん)
・っ or ッ sound

促音便(そくお\んびん)
・At the end of the 連用形(勝ち、食い、帰り) when the 動詞 comes next to a て・た・たり、 a 促音(っ) is introduced in between.
・This only occurs with the following endings「ち」「ひ・い」「り」

@whileloop99
whileloop99 / pronunciation-resources.md
Created August 1, 2022 08:03 — forked from k3zi/pronunciation-resources.md
English and Japanese Pronunciation Resources

Pronunciation Resources

Comment if you would like to see a resource added to the list.

Guides / Courses

あいうえおフォニックス (🇬🇧 English, Web, Free)
English phonetics video series made for a Japanese audience.
https://youtube.com/channel/UCX2tvXwAItLs5RhFFSGn9LQ

Dogen: Japanese Phonetics Series (🇯🇵 Japanese, Web, Paid)

@whileloop99
whileloop99 / console.save.js
Created July 6, 2022 04:44 — forked from raecoo/console.save.js
Save JSON object to file in Chrome Devtool
// e.g. console.save({hello: 'world'})
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'
if(typeof data === "object"){
data = JSON.stringify(data, undefined, 4)
@whileloop99
whileloop99 / media-query.css
Created January 14, 2021 02:00 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@whileloop99
whileloop99 / AudioInputStream.kt
Created December 20, 2020 02:29 — forked from niusounds/AudioInputStream.kt
AudioInputStream and AudioOutputStream for Android. These wrap AudioRecord and AudioTrack.
import android.media.AudioFormat
import android.media.AudioRecord
import android.media.MediaRecorder
import java.io.IOException
import java.io.InputStream
class AudioInputStream(
audioSource: Int = MediaRecorder.AudioSource.DEFAULT,
sampleRate: Int = 44100,
channelConfig: Int = AudioFormat.CHANNEL_IN_MONO,
@whileloop99
whileloop99 / gitignore_per_git_branch.md
Created November 12, 2020 12:37 — forked from wizioo/gitignore_per_git_branch.md
HowTo have specific .gitignore for each git branch

How to have specific .gitignore for each git branch

Objective

My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.

Solution

My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion. I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.

@whileloop99
whileloop99 / vue-render-merge.js
Created November 7, 2020 13:33 — forked from manico/vue-render-merge.js
Vue Render Merge
Vue.config.optionMergeStrategies.render = (parentVal, childVal) => {
if (parentVal) {
const mergedParentVal = function render(...args) {
args.push([childVal.apply(this, args)]);
return parentVal.apply(this, args);
};
return mergedParentVal;
}
@whileloop99
whileloop99 / gist:b473489c49ae1d8036a5b438aac80ebf
Created October 11, 2020 14:52 — forked from jfromaniello/gist:4087861
socket-io.client send the cookies!
/*
* Little example of how to use ```socket-io.client``` and ```request``` from node.js
* to authenticate thru http, and send the cookies during the socket.io handshake.
*/
var io = require('socket.io-client');
var request = require('request');
/*
* This is the jar (like a cookie container) we will use always