This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by Powerlevel10k configuration wizard on 2022-01-30 at 09:33 IST. | |
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 53041. | |
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode, | |
# 24h time, round separators, sharp heads, flat tails, 2 lines, solid, left frame, | |
# dark-ornaments, compact, many icons, concise, transient_prompt, | |
# instant_prompt=verbose. | |
# Type `p10k configure` to generate another config. | |
# | |
# Config for Powerlevel10k with powerline prompt style with colorful background. | |
# Type `p10k configure` to generate your own config based on it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# Make sure you have a recent version: the code points that Powerline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function App({ date }) { | |
const [currentDate, setCurrentDate] = useState(new Date()); | |
const [count, setCount] = useState(0); | |
const prettyDate = useMemo(() => formatDate(currentDate), [currentDate]); | |
return ( | |
<div className="App"> | |
<h1>Hello CodeSandbox</h1> | |
<h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function formatDate(date) { | |
const hour = date.getHours(); | |
const minute = date.getMinutes(); | |
const second = date.getSeconds(); | |
return (`${hour}:${minute}:${second}`); | |
} | |
const prettyDate = useMemo(() => formatDate(currentDate), [currentDate]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function App({ date }) { | |
const [currentDate, setCurrentDate] = useState(new Date()); | |
const [count, setCount] = useState(0); | |
function updateCount(byValue) { | |
setCount(count + byValue); | |
setCurrentDate(new Date()); | |
} | |
function formatDate() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "name": "Bandwidth 1", "provider": 48, "user": 240 }, | |
{ "name": "Bandwidth 2", "provider": 10, "user": 80 }, | |
{ "name": "Bandwidth 3", "provider": 50, "user": 75 } | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function findClassNames() { | |
var results = [].slice.call(document.querySelectorAll("div")).filter(function(o) {return o.innerText == "_Helper_"}); | |
if(results.length == 1) { | |
nameNode = results[0]; | |
nameClass = nameNode.classList[0] | |
countNode = [].slice.call(nameNode.parentNode.querySelectorAll("div")).filter(function(o) {return o.innerText == "1"})[0] | |
countClass = countNode.classList[0] | |
return { | |
nameClass: "." + nameClass, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######### | |
# GENERIC | |
######### | |
# git - generic | |
bind generic g ?sh -c "git %(prompt git )" | |
###### | |
# MAIN | |
###### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"global": { | |
"check_for_updates_on_startup": false, | |
"show_in_menu_bar": false, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"rules": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.keita.kagurazaka.sample.coroutine | |
import android.os.Bundle | |
import android.support.v7.app.AppCompatActivity | |
import android.util.Log | |
import android.widget.Button | |
import android.widget.Toast | |
import kotlinx.coroutines.experimental.CommonPool | |
import kotlinx.coroutines.experimental.android.UI | |
import kotlinx.coroutines.experimental.async |
NewerOlder