Skip to content

Instantly share code, notes, and snippets.

View evandrix's full-sized avatar

evandrix evandrix

View GitHub Profile

Keybase proof

I hereby claim:

  • I am evandrix on github.
  • I am evandrix ( on keybase.
  • I have a public key ASBktS2U6T_UsjtfZ1SJQxJ2VZpY0pEXV1YyzrQCpSpByAo

To claim this, I am signing this object:

evandrix / index.html
Created June 14, 2014 00:53
SG-MY Causeway Camera embed
<img alt="LNK CAM S5 SECOND LINK 10 KM-1.3 NB" src="">
<img alt="LNK CAM S5 SECOND LINK 8 KM1.8 SB" src="">
#coding: utf-8
from cStringIO import StringIO
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.header import Header
from email import Charset
from email.generator import Generator
import smtplib
# Example address data
evandrix / p438.cpp
Created January 11, 2014 18:17
Project Euler Problem 438
#include <iostream>
#include <cmath>
#include <stdlib.h>
#include <cstring>
using namespace std;
* Problem 438
* Example:
evandrix /
Created December 29, 2013 15:44
Gmail API

Gmail.js - JavaScript API for Gmail

TL;DR Summary

  • Lots of api methods to work with gmail. Useful for chrome extensions
  • Most of them dont take arguments, they work on what is currently visible on the screen
  • I still need to add implementation for chrome extension, works by injecting js for now
  • Main method is gmail.observe.on('lots_of_actions_here', callback())
  • Click on a method link to view more detailed docs
  • Create an issue/pull request for feedback, requests and fixes
import math
for i in xrange(1,600001):
# x*=2
# print str(i)+":"+str(int(math.log(n,2)))+":"+str(((2**x)**2)%1000000007)+"/"+str(x),
print i,x
if i == 20: break
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>HTML5 Video Player</title>
<link href="" rel="stylesheet">
<script src=""></script>
<body style="padding-top:16px">
evandrix / index.html
Created October 26, 2013 16:57
Twitter data visualization
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body {
margin: 0;
padding: 0
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
<uses-sdk android:minSdkVersion="8"/>
<uses-permission android:name="android.permission.READ_CONTACTS" />
<application android:label="@string/app_name">