Skip to content

Instantly share code, notes, and snippets.

View alexpaluzzi's full-sized avatar

Alex Paluzzi alexpaluzzi

View GitHub Profile
['Baby','Mommy','Daddy','Grandma','Grandpa','Let\'s go hunt',].map((i,f,a)=>{l=a.length-1==f;console.log(`${l?`${i}`:`${i} shark`}, ${'doo, '.repeat(5)}doo\n`.repeat(3)+`${i} ${l?`\nRun away,...`:`shark!`}`)});
['Baby','Mommy','Daddy','Grandma','Grandpa','Let\'s go hunt',].map((i,f,a)=>{l=a.length-1==f;console.log(`${l?`${i}`:`${i} shark`}, ${'doo, '.repeat(5)}doo\n`.repeat(3)+`${i} ${l?`\nRun away,...`:`shark!`}`)});
@alexpaluzzi
alexpaluzzi / gist:b90881882ee7e6ce44590145447e86fd
Created January 23, 2017 20:07
Archive everything in Google Voice (Classic) - Web
(()=>{
function select() {
document.getElementsByClassName('jfk-checkbox-checkmark')[0].click()
};
function archive() {
function triggerMouseEvent(node, eventType) {
let clickEvent = document.createEvent('MouseEvents');
clickEvent.initEvent(eventType, true, true);
node.dispatchEvent(clickEvent);
@alexpaluzzi
alexpaluzzi / gist:bdd8a0e937097afa7b27
Created December 19, 2014 15:33
Shrink core-toolbar height
core-toolbar {
font-family: RobotoDraft, sans-serif;
background-color: #4058A3;
box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.2);
color: #fff;
font-size: 20px;
font-weight: 400;
height: 42px;
}
@alexpaluzzi
alexpaluzzi / Dart.sublime-settings
Last active August 29, 2015 14:03
Dart.sublime-settings
{
"dartsdk_path" : "//PATH//TO//SDK",
"dartlint_active" : true,
"dartlint_on_load" : true,
"dartlint_on_save" : true,
"dart_log_level": "debug"
}
@alexpaluzzi
alexpaluzzi / gist:5595e579ed97c6a1a5ef
Last active August 29, 2015 14:01
Constructor functions the "Angular way" (slightly opinionated)
// Factory is a great place to keep the constructor and instance methods
app.factory('User', function() {
function User(username, email) {
this.username = username;
this.email = email;
}
User.prototype = {
printUser: function() {
console.log(this.username);
},