Skip to content

Instantly share code, notes, and snippets.

View sinan's full-sized avatar
🌀

Sinan Yasar sinan

🌀
View GitHub Profile
@sinan
sinan / ga
Created October 20, 2014 10:38
koding google analytics script
<script>
(function(k,o,d,i,n,g){k['GoogleAnalyticsObject']=i;k[i]=k[i]||function(){
(k[i].q=k[i].q||[]).push(arguments)},k[i].l=1*new Date();g=o.createElement(d),
n=o.getElementsByTagName(d)[0];g.async=1;g.src='//www.google-analytics.com/analytics.js';
n.parentNode.insertBefore(g,n)})(window,document,'script','ga');
ga('create', 'UA-6520910-8', 'koding.com');ga('send', 'pageview');
</script>
@sinan
sinan / sublime.settings
Created December 19, 2014 04:52
sublime.settings
{
"auto_complete": false,
"color_scheme": "Packages/User/base16-eighties.dark (SL).tmTheme",
"enable_tab_scrolling": false,
"fade_fold_buttons": false,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
@sinan
sinan / gist:bf5a8ede81342f6a98e6
Created June 1, 2015 23:49
low quality emails
10mail.org
10minutemail.co.za
123.com
20mail.in
20mail.it
Upal.se
abc.bg
abusemail.de
abv.bg
abyssmail.com
@sinan
sinan / keybase.md
Created March 16, 2016 06:45
my keybase id proof

Keybase proof

I hereby claim:

  • I am sinan on github.
  • I am sinan (https://keybase.io/sinan) on keybase.
  • I have a public key ASAM-X95hbfeCJk9HHYAD6s3IgNaRu_I9VXFOI0SbZRsXAo

To claim this, I am signing this object:

@sinan
sinan / hubspot retina image support
Last active December 20, 2017 17:58
a workaround for showing responsive images in hubspot
# in your custom module you can create two images
# e.g. widget.image and widget.image2x
# then use them in a responsive img tag as below.
# basic idea
{% if widget.image.src %}
<img src="{{ widget.image.src }}" srcset="{{ widget.image.src }} 1x, {{ widget.image2x.src }} 2x" />
{% endif %}
@sinan
sinan / gist:7efe9c19fcefd6e2af6b550a0a0fe4da
Last active September 12, 2016 22:08
hasoffers identify/track calls thru segment
# IDENTIFY CALL WITH TRANSACTION_ID
{
"messageId": "api-DKJ9on3WyBhZegvIP246o1MQeKs5cDn8",
"projectId": "2XFFlhuziK",
"integration": "HasOffers",
"error": {
"name": "Error",
"retry": false,
"status": 400,
0x183b8a531d1acdae4de18db7431b0db539690756
0x64c590dc81215bf882c6f4b403562bf2780c87bd
0x782EFBD01960FC86bbcE975dd6381152e5F18294
0x986c2dbc198904269871854f29f7519c7e44f78b