Skip to content

Instantly share code, notes, and snippets.

🤷‍♂️
¯\_(ツ)_/¯

Tomek Wójcik tomekwojcik

🤷‍♂️
¯\_(ツ)_/¯
View GitHub Profile
@lukaszkorecki
lukaszkorecki / meh.rb
Last active Dec 11, 2015
Would be cool if this was possible. I know(ish) why it's hard to do.... But it would be cool :-)
View meh.rb
def ok a ; puts "ok #{a} " ; end
ok 1 # => "ok 1"
def yo a ; puts "yo #{a}" ; end
yo 1 # => "yo 1"
ok(a), yo(b) = [1,2] # => exception!
a , b = [1,2]; ok(a) ; yo(b) # => meh!
@ciembor
ciembor / switch.py
Created Jan 22, 2013
Switching between Python 3 and 2 in a runtime
View switch.py
#!/usr/bin/env python
import sys, os
print(sys.version_info[:])
if sys.version_info[0] != 2:
sys.argv.insert(0, "python2")
os.execl("/usr/bin/env", "/usr/bin/env", *sys.argv)
@ryankearney
ryankearney / ComcastInject.html
Last active Feb 22, 2020
This is the code Comcast is injecting into its users web traffic.
View ComcastInject.html
<script language="JavaScript" type="text/javascript">
// Comcast Cable Communications, LLC Proprietary. Copyright 2012.
// Intended use is to display browser notifications for critical and time sensitive alerts.
var SYS_URL='/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do';
// var image_url='http://servicealerts.comcast.net:8080/images/mt';
var image_url='http://xfinity.comcast.net/constantguard/BotAssistance/notice/images';
var headertext1='<strong>Comcast Courtesy Notice</strong>';
var textline1='You have reached 90% of your <b>monthly data usage allowance</b>.';
var textline2='Please sign in for more information and to remove this alert.';
var acknowledgebutton='<a href=\"#\" onClick="document.location.href=\''+SYS_URL+'?dispatch=redirect&redirectName=login&paramName=bmUid\'" title="Sign in to acknowledge" style="color: #FFFFFF;"><img alt="Sign in to acknowledge" src="'+image_url+'/mt_signin.png"/></a>';
You can’t perform that action at this time.