Skip to content

Instantly share code, notes, and snippets.

View Aslonski's full-sized avatar
😎

Andrey Slonski Aslonski

😎
  • Chicago, IL
View GitHub Profile

Keybase proof

I hereby claim:

  • I am aslonski on github.
  • I am droshik (https://keybase.io/droshik) on keybase.
  • I have a public key ASALWtJR1HgT6ZJ85B91yOrKfYWOoSB0yTTQk-ZvqTzogAo

To claim this, I am signing this object:

@Aslonski
Aslonski / headers2.html
Created December 21, 2017 19:16
headrs2
Delivered-To: andrey@intercom.io
Received: by 10.2.42.131 with SMTP id w125csp1239555jaw;
Thu, 21 Dec 2017 10:29:21 -0800 (PST)
X-Google-Smtp-Source: ACJfBosJfNxM4gCfi2lMrc6h/cw2EzcxSI1Pu7VUPU9kcy8+/p0aRRhTtBZFXUJodI7Hy0cs2P45
X-Received: by 10.80.142.178 with SMTP id w47mr11767918edw.251.1513880961053;
Thu, 21 Dec 2017 10:29:21 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1513880961; cv=none;
d=google.com; s=arc-20160816;
b=ah3PMScZpfS7/yynMEhw4lnMoU0bo5HVC4H7T2SkB45d0Bb3bNdSAFEqp0z4893VmR
L9IBS5tAydbggV1Au4y5Blasye8SH+n59znJfmCB72t/cPnso135qRuktQk1KTepp2Mr
@Aslonski
Aslonski / headers.html
Created December 21, 2017 19:14
headers
Delivered-To: andrey@intercom.io
Received: by 10.2.42.131 with SMTP id w125csp1236784jaw;
Thu, 21 Dec 2017 10:26:28 -0800 (PST)
X-Google-Smtp-Source: ACJfBouDTnbFx9csU80FTFM5q15zL2ODA5jL48fdKWIADdjdo+NcC3x4xgK2Wbbjq4PQN8tpDQo3
X-Received: by 10.80.214.74 with SMTP id c10mr11261137edj.271.1513880788757;
Thu, 21 Dec 2017 10:26:28 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1513880788; cv=none;
d=google.com; s=arc-20160816;
b=Rb136qVSBgsY4zNOvXkNba4mO89i84Ozb7rtaUOf+EzNwYQ/H9noRjZUcqGfUp9tLg
VZESheIpixdrm0m6Yc6y0ry1LlA0+bUmpU7e6MkGWtTh5xboyu+8RmePKY/1QNoYtZ8D
@Aslonski
Aslonski / error.txt
Created October 4, 2017 18:59
Console Error
Ember.onerror @ raven.js:19
l @ ember.prod.js:16697
o @ ember.prod.js:16678
invokeWithOnError @ ember.prod.js:338
flush @ ember.prod.js:394
flush @ ember.prod.js:518
end @ ember.prod.js:588
run @ ember.prod.js:702
_runExpiredTimers @ ember.prod.js:1096
@Aslonski
Aslonski / Regex.rb
Created June 28, 2017 02:22
Regex Presentation
def email_finder(string)
emails = string.scan(/\w{2,}@[a-z0-9]+\.+[a-z]{2,4}/i)
emails.each_with_index do |email, idx|
puts "#{idx+1} – #{email}"
end
end
def curtleize(string)
fun_string = string.gsub(/Curtis/, "Curtle")
@Aslonski
Aslonski / template.html
Created June 1, 2017 16:05
Custom Template
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width">
<meta name="format-detection" content="telephone=no">
<title>Email template</title>
<style type="text/css" data-premailer="ignore">
#outlook a{
@Aslonski
Aslonski / code.rb
Created May 26, 2017 16:43
Server error
def submit_to_intercom
ic_user = intercom.users.create(intercom_data)
lead = intercom.contacts.find_all(email: email).first <—— fails here
intercom.contacts.convert(lead, ic_user) if lead
return unless client_profile.intercom_id != ic_user.id
array_of_numbers = [1,2,3,4,5]
array_of_numbers.each { |element|
element *= 3
puts element
}
=>
3
6
9
@Aslonski
Aslonski / ForEach_JS.js
Last active March 26, 2016 23:40
foreach
var arrayOfNumbers = [1,2,3,4,5];
arrayOfNumbers.forEach(function(element) {
element *= 3
console.log(element);
});
=>
3
6
9
for ( var number = 0; number < 50; number = number + 10) {
console.log("This is starting to make more sense");
};
=>
This is starting to make more sense
This is starting to make more sense
This is starting to make more sense
This is starting to make more sense
This is starting to make more sense