Skip to content

Instantly share code, notes, and snippets.

@k3zi
k3zi / pronunciation-resources.md
Last active September 12, 2024 07:20
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)

@y-polek
y-polek / doze_mode_adb_commands.sh
Last active September 14, 2024 08:26
adb commands to test Doze mode
#! /bin/zsh
# Buttery powered state
adb shell dumpsys battery | grep powered
# Unplug battery
adb shell dumpsys battery unplug
# Reset battery
adb shell dumpsys battery reset
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active September 23, 2024 11:25
crack activate Office on mac with license file

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「ち」「ひ・い」「り」

@gmazzo
gmazzo / JsoupConverterFactory.kt
Created February 2, 2018 15:19
A Jsoup body converter for Retrofit
/**
* A Jsoup body converter for Retrofit
*
* Sample usage (with Rx):
* Retrofit.Builder()
* .addCallAdapterFactory(RxJava2CallAdapterFactory.createAsync())
* .addConverterFactory(JsoupConverterFactory)
* .build()
*
* Then you can declare in you Retrofit interface return type:
@mugifly
mugifly / switchbot-cmd.md
Last active February 10, 2022 23:58
Simplest Switchbot Command

switchbot-cmd.py

Simplest Switchbot Command

Installation

It tested on Raspberry Pi Zero W with Raspbian Stretch.

$ sudo apt-get install python-pip libglib2.0-dev bluez-tools
$ sudo pip install bluepy
@josdejong
josdejong / merge.kt
Last active October 24, 2023 09:30
Merge two data classes in Kotlin
import kotlin.reflect.full.declaredMemberProperties
import kotlin.reflect.full.primaryConstructor
/**
* Merge two data classes
*
* The resulting data class will contain:
* - all fields of `other` which are non null
* - the fields of `this` for the fields which are null in `other`
*
@RICH0423
RICH0423 / SwaggerConfig.java
Created September 25, 2017 06:46
Pass JWT token in swagger with Spring Boot and springfox
package com.rich.api.config;
import java.util.Arrays;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
@raecoo
raecoo / console.save.js
Last active August 7, 2024 21:38
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)