Skip to content

Instantly share code, notes, and snippets.

View inktomi's full-sized avatar
Stay safe!

Matthew Runo inktomi

Stay safe!
View GitHub Profile
View gist:8a8f760620966fc58043
mAppBarHeader.setExpanded(false, true);
Handler animatedDelay = new Handler(Looper.getMainLooper());
animatedDelay.postDelayed(new Runnable()
public void run()
AppBarLayout.LayoutParams layout = (AppBarLayout.LayoutParams) mAppBarChildContainer.getLayoutParams();
View gist:df576ac82ae8100829fb
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android=""
inktomi / gist:4111d570baeef267eb4d
Created March 16, 2015 16:09
Side Panel Setup
View gist:4111d570baeef267eb4d
private void setupSidePanel(Toolbar toolbar) {
// Ensure we'll be able to see the drawer toggle button.
Account account = mAuthManager.getSingleAccountForType(BuildConfig.ACCOUNT_TYPE);
IDrawerItem signOutItem = null;
if (null != account) {
signOutItem = new PrimaryDrawerItem()
inktomi / Updating Cheetah
Created March 12, 2015 21:10
Updated gqrx homebrew
View Updating Cheetah
mattruno@Matthews-MacBook-Pro ~ $ sudo pip install --upgrade Cheetah
Requirement already up-to-date: Cheetah in /usr/local/lib/python2.7/site-packages
Downloading/unpacking Markdown>=2.0.1 from (from Cheetah)
Downloading Markdown-2.6.1.tar.gz (298kB): 298kB downloaded
Running (path:/private/tmp/pip_build_root/Markdown/ egg_info for package Markdown
Installing collected packages: Markdown
Found existing installation: Markdown 2.6
Uninstalling Markdown:
Successfully uninstalled Markdown
inktomi / gnuradio.txt
Created February 27, 2015 16:59
Homebrew 10.10 gnuradio install failure
View gnuradio.txt
Install XQuartz
brew install gnuradio
It fails, vebose output attached.
inktomi / gist:44a3e57aa2aff077cd04
Created February 14, 2015 22:21
qgrx brew failure
View gist:44a3e57aa2aff077cd04
Matthews-MacBook-Pro:~ mruno$ brew install -v gqrx
==> Installing gqrx from chleggett/homebrew-gqrx
==> Installing gqrx dependency: gr-osmosdr
==> Downloading
Already downloaded: /Library/Caches/Homebrew/gr-osmosdr-0.1.4.tar.gz
==> Verifying gr-osmosdr-0.1.4.tar.gz checksum
tar xf /Library/Caches/Homebrew/gr-osmosdr-0.1.4.tar.gz
-- The CXX compiler identification is AppleClang
-- The C compiler identification is AppleClang
inktomi /
Last active July 20, 2021 14:06
Multipart Upload
// From Camera
Bitmap photo = (Bitmap) data.getExtras().get("data");
File imageFileFolder = new File(getCacheDir(),"Avatar");
if( !imageFileFolder.exists() ){
FileOutputStream out = null;
inktomi / app.js
Last active December 13, 2015 20:18
Sample code.
View app.js
* Module dependencies.
var express = require('express');
var user = require('./routes/user');
var media = require('./routes/media');
var app = express();