This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); | |
var user = require('./routes/user'); | |
var media = require('./routes/media'); | |
var app = express(); | |
app.use(express.bodyParser()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From Camera | |
Bitmap photo = (Bitmap) data.getExtras().get("data"); | |
File imageFileFolder = new File(getCacheDir(),"Avatar"); | |
if( !imageFileFolder.exists() ){ | |
imageFileFolder.mkdir(); | |
} | |
FileOutputStream out = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Matthews-MacBook-Pro:~ mruno$ brew install -v gqrx | |
==> Installing gqrx from chleggett/homebrew-gqrx | |
==> Installing gqrx dependency: gr-osmosdr | |
==> Downloading http://cgit.osmocom.org/gr-osmosdr/snapshot/gr-osmosdr-0.1.4.tar.gz | |
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 | |
==> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/gr-osmosdr/0.1.4 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev | |
-- The CXX compiler identification is AppleClang 6.0.0.6000056 | |
-- The C compiler identification is AppleClang 6.0.0.6000056 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install XQuartz | |
brew install gnuradio | |
It fails, vebose output attached. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 https://pypi.python.org/packages/source/M/Markdown/Markdown-2.6.1.tar.gz#md5=c084f9d2fd0a839639fd9aa8c442d5cd (from Cheetah) | |
Downloading Markdown-2.6.1.tar.gz (298kB): 298kB downloaded | |
Running setup.py (path:/private/tmp/pip_build_root/Markdown/setup.py) egg_info for package Markdown | |
Installing collected packages: Markdown | |
Found existing installation: Markdown 2.6 | |
Uninstalling Markdown: | |
Successfully uninstalled Markdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void setupSidePanel(Toolbar toolbar) { | |
// Ensure we'll be able to see the drawer toggle button. | |
getSupportActionBar().setDisplayHomeAsUpEnabled(true); | |
Account account = mAuthManager.getSingleAccountForType(BuildConfig.ACCOUNT_TYPE); | |
IDrawerItem signOutItem = null; | |
if (null != account) { | |
signOutItem = new PrimaryDrawerItem() | |
.withName(R.string.side_panel_sign_out) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<TextView | |
android:id="@+id/seller_name" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentTop="true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mAppBarHeader.setExpanded(false, true); | |
Handler animatedDelay = new Handler(Looper.getMainLooper()); | |
animatedDelay.postDelayed(new Runnable() | |
{ | |
@Override | |
public void run() | |
{ | |
AppBarLayout.LayoutParams layout = (AppBarLayout.LayoutParams) mAppBarChildContainer.getLayoutParams(); | |
layout.setScrollFlags(0); |