🆕 💻 Mac Setup List:
- all
dotfiles
- install
brew
,node
zsh
,python
- sudo-touchid
- iTerm config
- Fonts with ligatures
- Raycast
- Wallpapers
Use Stacks
on Desktop- git's ssh & gpg setup
🆕 💻 Mac Setup List:
dotfiles
brew
, node
zsh
, python
Use Stacks
on Desktop<?php | |
// half-hearted CSS minification | |
$css = preg_replace( | |
array('/\s*(\w)\s*{\s*/','/\s*(\S*:)(\s*)([^;]*)(\s|\n)*;(\n|\s)*/','/\n/','/\s*}\s*/'), | |
array('$1{ ','$1$3;',"",'} '), | |
file_get_contents('linked.css') | |
); | |
// embed as a data: uri | |
$base64css = rtrim(strtr(base64_encode($css), '+/', '-_'), '='); |
// add a cronjob for this | |
import fetch from 'node-fetch'; // for lower node versions | |
const getOrder = () => { | |
const users = ["Jim", "Pam" "Dwight"]; // names of users | |
let shuffled = users | |
.map(value => ({ value, sort: Math.random() })) | |
.sort((a, b) => a.sort - b.sort) | |
.map(({ value }) => `-> ${value}`); |
const sleep = (milliseconds) => { | |
return new Promise((resolve) => setTimeout(resolve, milliseconds)); | |
}; | |
const YOUR_ENTRY_NAME = "Aashutosh"; | |
// Go to NAL Page | |
if (window.location.hash !== "#/security/network/accessList") { | |
window.location.hash = "#/security/network/accessList"; | |
await sleep(1000); | |
} |
def unicodetoascii(text): | |
TEXT = (text. | |
replace('\\xe2\\x80\\x99', "'"). | |
replace('\\xc3\\xa9', 'e'). | |
replace('\\xe2\\x80\\x90', '-'). | |
replace('\\xe2\\x80\\x91', '-'). | |
replace('\\xe2\\x80\\x92', '-'). | |
replace('\\xe2\\x80\\x93', '-'). | |
replace('\\xe2\\x80\\x94', '-'). |
android { | |
... | |
} | |
// Add the below code in android/app/build.gradle after above android block | |
// Provide same version code to all! | |
import com.android.build.OutputFile | |
android.applicationVariants.all { variant -> |
x = document.querySelectorAll('div.f4.lh-condensed.text-bold.text-gray-dark'); | |
for(let i=0; i<x.length; i++) { | |
const [a, b] = x[i].children[0].innerText.split('/'); | |
if(a === b) | |
x[i].parentElement.parentElement.remove(); | |
} |
const getActualType = weirdo => | |
toString | |
.call(weirdo) | |
.match(/([A-Z])\w+/)[0] | |
.toLowerCase(); | |
// toString.call(T) returns "[Object <TypeOfT>]", I find the first word with Capital Letter as front. |