Skip to content

Instantly share code, notes, and snippets.

View jlecomte's full-sized avatar

Julien Lecomte jlecomte

  • Samsung Electronics
  • San Jose, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jlecomte on github.
  • I am julienlecomte (https://keybase.io/julienlecomte) on keybase.
  • I have a public key ASAstcPJd9xlJICZKealOZL_WIhK6FGZ8TnmmeYqoTucdAo

To claim this, I am signing this object:

@jlecomte
jlecomte / metrics.json
Created June 8, 2017 18:50
Proposed format for performance and reliability metrics
{
"events":[{
"name": "bootstrap_load",
"timestamp": 342424234,
"values":[{
"name": "execution_time",
"value": 1234
}, {
"name": "cpu_usage",
"value": 45,
@jlecomte
jlecomte / MainActivity.java
Created July 12, 2014 22:07
EarthquakeTracker settings
package net.julienlecomte.earthquaketracker;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends Activity {
@jlecomte
jlecomte / gist:391fbba5ec2bf096021f
Created June 13, 2014 20:51
Using existing YUI Gallery module using cdn.rawgit.com
YUI({
modules: {
'gallery-foo': {
fullpath: 'http://cdn.rawgit.com/user/repo/branch/build/gallery-foo/gallery-foo.js',
requires: [ 'bar', 'baz' ]
}
}
}).use('gallery-foo', function (Y) {
...
});
@jlecomte
jlecomte / test-bfcache.html
Created May 13, 2011 18:17
Using the unload event without breaking the back-forward cache
<!doctype html>
<html>
<head>
<title></title>
<script type="text/javascript">
function addEvent (el, type, fn, capture) {
if (el && el.addEventListener) {
el.addEventListener(type, fn, capture);
} else if (el && el.attachEvent) {