Skip to content

Instantly share code, notes, and snippets.

@parro-it
parro-it / tabs
Created September 30, 2015 15:33
li {
display: inline-block;
min-width: 150px;
border: 1px solid red;
border-top-left-radius: 14px 21px;
border-top-right-radius: 14px 21px;
margin: 0;
padding-left: 15px;
font-family: sans-serif;
background-color: #F18282;
❯ defaults read -g AppleInterfaceStyle
Dark
~/Desktop/repos/electron-hack master*
❯ defaults read -g AppleInterfaceStyle
2015-11-10 17:35:25.937 defaults[38705:232950]
The domain/default pair of (kCFPreferencesAnyApplication, AppleInterfaceStyle) does not exist
<!doctype html>
<html>
<head>
<title>example</title>
<script>
const inputMenu = require('electron-input-menu');
const context = require('electron-contextmenu-middleware');
@parro-it
parro-it / setup.sh
Created June 23, 2016 16:03
ubuntu 32 bit env for libui
sudo apt-get dist-upgrade
sudo apt-get update
sudo apt-get install build-essential git
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update
sudo apt-get install cmake
sudo apt-get install pkg-config
sudo apt-get install gtk+-3.0
git clone https://github.com/parro-it/libui.git
npm config set init-author-name="Andrea Parodi"
npm config set init-author-email="andrea@parro.it"
npm config set init-license="MIT"
npm config set init-version="0.0.0"
alias ny='npm init -y'
const slice = unthis(Array.prototype.slice)
console.log(slice(0, -1, [1,2,3]));
// <- [1,2]
watch "ps a -o ruser,comm,tty,stat | grep pts/4 | grep + | grep -v grep"
@parro-it
parro-it / $`
Created October 23, 2017 20:48
await $`ls`('-l', '--color')
.pipe($`grep`('run'))
.writeTo('/tmp/a')
@parro-it
parro-it / configure-git.sh
Last active November 15, 2017 20:21
Scaffold a module blog post code
git init
git remote add origin https://github.com/`npm config get init-author`/thankyou.git