Skip to content

Instantly share code, notes, and snippets.

View evandrix's full-sized avatar
💭
offline

evandrix evandrix

💭
offline
View GitHub Profile

Keybase proof

I hereby claim:

  • I am evandrix on github.
  • I am evandrix (https://keybase.io/evandrix) on keybase.
  • I have a public key ASBktS2U6T_UsjtfZ1SJQxJ2VZpY0pEXV1YyzrQCpSpByAo

To claim this, I am signing this object:

@evandrix
evandrix / index.html
Created June 14, 2014 00:53
SG-MY Causeway Camera embed
<div>
<img alt="LNK CAM S5 SECOND LINK 10 KM-1.3 NB" src="http://www.llm.gov.my/maklumat_trafik_terkini.aspx?ImagePath=HYEC4fuANi4FALhGgLSGmDWAlRFhYuAE7/is8T3p+ROwE7P5XavMSyo/MuMcxM3ICpDtpXzLqfOW4hPqp4ExRJDJqARoFIgnAaRq7RNLqh1DfTZz3VZLZY4T+8oCfM6c">
<img alt="LNK CAM S5 SECOND LINK 8 KM1.8 SB" src="http://www.llm.gov.my/maklumat_trafik_terkini.aspx?ImagePath=HYEC4fuANi4FALhGgLSGmDWAlRFhYuAE7/is8T3p+ROwE7P5XavMSyo/MuMcxM3ICpDtpXzLqfOW4hPqp4ExRNY1mvfC6C26zLOdSXg33IoG4elAdTDml0GqDEBtkqMz">
</div>
https://raw.githubusercontent.com/user/repo/master/filename.js
-> https://rawgit.com/user/repo/master/filename.js
#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
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
evandrix / README.md
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=int('{0:b}'.format(i))
# x*=2
n=2**x
# 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>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>HTML5 Video Player</title>
<link href="http://vjs.zencdn.net/4.1/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/4.1/video.js"></script>
</head>
<body style="padding-top:16px">
<style>
@evandrix
evandrix / index.html
Created October 26, 2013 16:57
Twitter data visualization
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Tweets</title>
<style type="text/css">
body {
margin: 0;
padding: 0
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8"/>
<uses-permission android:name="android.permission.READ_CONTACTS" />
<application android:label="@string/app_name">