Skip to content

Instantly share code, notes, and snippets.

Albert aristretto

Block or report user

Report or block aristretto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View test.js
console.warn('foo');
function bar() {
console.log('bar!');
};
View keybase.md

Keybase proof

I hereby claim:

  • I am aristretto on github.
  • I am aristretto (https://keybase.io/aristretto) on keybase.
  • I have a public key ASBofRw6rNNtjFFEtA8sK6SzeNOHIzknNlZL5pNjg-i6ZAo

To claim this, I am signing this object:

@aristretto
aristretto / console-vote-message.js
Created Nov 8, 2016
Paste this in your JS console (in Chrome)
View console-vote-message.js
!(navigator.userAgent.toLowerCase().indexOf('chrome') > -1) ? null : (function() {
var args = [], eightBitHack = [], coordinates = ["nodcnp", "tl9ehx", "tl9fad", "tl9fad", "tl9fhh", "tl9fj9", "zik0z9", "zik0zh", "zik0zj", "zik0zh", "zik0z9", "tl9fj9", "tl9fhh", "tl9fad", "tl9fad", "tl9ehx", "nodcnp"];
for (var row = coordinates.length; row--;) {
var decompressedRow = parseInt(coordinates[row], 36).toString(4).split('');
coordinates[row] = decompressedRow.splice(1, decompressedRow.length-1);
for (var cell = coordinates[row].length; cell--;) {
var dot = parseInt(coordinates[row][cell]);
var color = dot === 3 ? '#c32733' : dot === 2 ? '#1155cc' : dot ? '#fff' : null;
args.unshift("border: 8px solid color;".replace('color', color));
eightBitHack.unshift("%c");
@aristretto
aristretto / SassMeister-input-HTML.html
Created Jul 7, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="zenefits-logo">
<div class="piece wing-back"></div>
<div class="piece head"></div>
<div class="piece wing-front-1"></div>
<div class="piece wing-front-2"></div>
<div class="piece tail"></div>
</div>
@aristretto
aristretto / SassMeister-input-HTML.html
Last active Apr 8, 2016
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="zenefits-logo">
<div class="piece wing-back"></div>
<div class="piece head"></div>
<div class="piece wing-front-1"></div>
<div class="piece wing-front-2"></div>
<div class="piece tail"></div>
</div>
@aristretto
aristretto / SassMeister-input-HTML.html
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="zenefits">
<div class="piece wing-back"></div>
<div class="head">
<div class="piece head-1"></div>
<div class="piece head-2"></div>
<div class="piece head-3"></div>
</div>
@aristretto
aristretto / SassMeister-input-HTML.html
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="page">
<div class="row">
<div class="hex">
<div class="hexTop"></div>
<div class="hexBottom"></div>
</div>
<div class="hex-2">
<div class="hexTop"></div>
@aristretto
aristretto / gist:64d5bbac5897cdaff248
Created Jan 20, 2015
Useful way to search a given string for any of a list of terms, in python.
View gist:64d5bbac5897cdaff248
def has_search_term(string_to_search):
patterns = re.compile(r'(?:%s)' % '|'.join(list_of_terms))
return bool(patterns.search(string_to_search))
You can’t perform that action at this time.