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
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="nord-extended/nord" | |
HIST_STAMPS="yyyy-mm-dd" | |
source ~/.zplug/init.zsh | |
zplug "plugins/git", from:oh-my-zsh | |
zplug "zsh-users/zsh-completions" | |
zplug 'zsh-users/zsh-syntax-highlighting', defer:2 | |
zplug 'zsh-users/zsh-history-substring-search', defer:3 |
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
rm -rf ~/Library/Caches/CocoaPods Pods ~/Library/Developer/Xcode/DerivedData/* | |
pod deintegrate | |
pod setup | |
pod install |
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
let previousTime = 0.0; | |
let isGameRunning = true; | |
const update = (diff) => { | |
console.log(diff); | |
}; | |
const render = () => { }; | |
const loop = time => { | |
const dt = time - previousTime; |
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 get_public_keys () { | |
mkdir -m 700 -p ~/.ssh | |
for user in "$@" | |
do | |
curl -s https://github.com/"$user".keys >> ~/.ssh/authorized_keys | |
done | |
chmod 600 ~/.ssh/authorized_keys | |
} |
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
sudo fuser -k 80/tcp | |
sudo fuser -k 443/tcp | |
sudo service nginx restart |
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
Apple very usefully provides unauthenticated json feeds for both the iTunes search and iTunes rss | |
The Search API returns your search results in JavaScript Object Notation (JSON) format. JSON is built on two structures: | |
All JSON results are encoded as UTF-8. For more information on JSON, please see http://www.json.org. | |
--- | |
Search API | |
http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html | |
--- | |
RSS Info |
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
import { useStaticRendering } from "mobx-react-lite"; | |
import { action, observable } from "mobx"; | |
import { useMemo } from "react"; | |
useStaticRendering(typeof window === "undefined"); | |
let companyStore; | |
interface CompanyServiceInterface { | |
loadCompany: (name: string) => {}; | |
} | |
class CompanyServiceClient implements CompanyServiceInterface{ | |
loadCompany(name: string): {} { |
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": "Yetric", | |
"cursorColor": "#fafafa", | |
"selectionBackground": "#FFFFFF", | |
"background": "#263238", | |
"foreground": "#eceff1", | |
"black": "#0C0C0C", |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>JSON 2 Table</title> | |
<style> | |
body { |
NewerOlder