Skip to content

Instantly share code, notes, and snippets.

View wernull's full-sized avatar

Kyle Werner wernull

View GitHub Profile
@wernull
wernull / test.js
Last active February 10, 2016 16:17
Hash example
let users = [user1,user2,user3];
let promises = users.map(user => {
user.set('needsUpdate',true);
return user.save();
});
Ember.RSVP.all(promises)
.then(users => {
doSomethingWith(users);
});
* {
background: #000 !important;
color: #0f0 !important;
outline: solid #f00 1px !important;
}
@wernull
wernull / userscript.css
Last active December 11, 2019 04:03
Slack image and video hide userscript
.sgh-flyout {
position: absolute;
top: 0;
left: 0;
z-index: 9999;
}
.sgh-icons {
position: relative;
float: left;
@wernull
wernull / userscript.js
Last active December 27, 2015 12:59
Kato-GIF-Hider Fluid Userscript and Userstyle
kgh = {};
kgh.InitKatoGifHide = function(){
// trigger message collapse when image is clicked
$(".page-org").delegate('.preview-image','click',function(e) {
e.preventDefault();
$(e.target).closest('.message').find('.icon-collapse-alt').trigger('click');
});
}