Skip to content

Instantly share code, notes, and snippets.

View behnam's full-sized avatar
🦊

Behnam Esfahbod behnam

🦊
View GitHub Profile
@behnam
behnam / sfnet2github.sh
Created May 23, 2012 03:03 — forked from stwalkerster/sfnet2github.sh
SourceForge.net svn repo to github git repo import script

Licence (MIT Licence)

Copyright (c) 2011 Simon Walker

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Glass Lab Experiments

Updated: July 2nd (XE7)

Ron Amadeo of Android Police did a review of these experiments: http://www.androidpolice.com/2013/05/24/google-glasss-hidden-labs-features-ok-glass-everywhere-web-browsing-video-stabilization-and-more-video/

Google Glass has a series of Labs experiments that can be enabled on engineering or userdebug builds. Using APKTool, I've removed that restriction and now they can be enabled with root access.

To start, for example, the SOUND_SEARCH lab, type in a root shell

Google Glass XE7 was released this week. This time, Google also released a changelog of all the changes. However, I'm a reader of Ron Amadeo's APK Teardown series, and that column taught me to always hunt for hidden changes in updates.

So without further ado, I present:

#What's Really New: Glass XE7

Volume change

Google Glass XE7 was released this week. This time, Google also released a changelog of all the changes. However, I'm a reader of Ron Amadeo's APK Teardown series, and that column taught me to always hunt for hidden changes in updates.

So without further ado, I present:

#What's Really New: Glass XE7

Volume change

@behnam
behnam / keybase.md
Created April 16, 2014 08:06
keybase.io

Keybase proof

I hereby claim:

  • I am behnam on github.
  • I am behnam (https://keybase.io/behnam) on keybase.
  • I have a public key whose fingerprint is 3E7F B4B6 6F4C A8AB 9BB9 7520 5701 CA40 259E 0F8B

To claim this, I am signing this object:

@behnam
behnam / cargo-publish-all.sh
Created June 21, 2017 00:30
Rust/Cargo: Temporary solution to publishing all components of a super-crate
#!/usr/bin/env bash
# Copyright 2017 The UNIC Project Developers.
#
# See the COPYRIGHT file at the top-level directory of this distribution.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
@behnam
behnam / main.rs
Created July 7, 2017 22:07
glob vs globset
extern crate glob;
extern crate globset;
fn main() {
println!("\n## This is globset!");
let glob = globset::Glob::new("*.rs").unwrap().compile_matcher();
assert!(glob.is_match("foo.rs"));
assert!(glob.is_match("foo/bar.rs"));
@behnam
behnam / Cargo.lock-before.toml
Created July 15, 2017 22:09
Cargo.lock-before
[root]
name = "unicode-bidi"
version = "0.3.3"
dependencies = [
"flame 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
"matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_test 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)",
]
@behnam
behnam / Cargo.lock-after.toml
Created July 15, 2017 22:09
Cargo.lock-after
[root]
name = "unicode-bidi"
version = "0.3.3"
dependencies = [
"flame 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
"matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_test 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)",
]
@behnam
behnam / gist:64484153914d862a2c75d57d15fc58e4
Created November 5, 2017 23:18
rust git grep utf8/utf16 allocations
~/code/rust/rust$ git grep '\[0; 2\]'
src/libcore/tests/char.rs: let mut buf = [0; 2];
src/libpanic_unwind/seh.rs: [0; 2]
src/librustc_apfloat/ieee.rs: let mut wide_sig = [0; 2];
src/librustc_data_structures/blake2b.rs: t: [0; 2],
src/libstd/sys/redox/pipe.rs: let mut fds = [0; 2];
src/libstd/sys/unix/pipe.rs: let mut fds = [0; 2];
src/libstd/sys_common/wtf8.rs: let mut buf = [0; 2];
src/libstd_unicode/char.rs: /// let mut b = [0; 2];
src/libstd_unicode/char.rs: /// let mut b = [0; 2];