Skip to content

Instantly share code, notes, and snippets.

View markbratanov's full-sized avatar
🎯
Focusing

Mark Bratanov markbratanov

🎯
Focusing
View GitHub Profile
@markbratanov
markbratanov / README.md
Created June 10, 2012 20:35 — forked from aronwoost/README.md
How to install LAMP on a EC2 Amazon AMI

Launch the instance and connect with ssh.

##Update the server

sudo yum update

##Install php and MySQL packages

@markbratanov
markbratanov / logcat
Last active December 16, 2015 04:59
GridAdapter for StackOverflow
public class LocationModelGridAdapter extends BaseAdapter {
private class ViewHolder {
public ImageView imageView;
public TextView textView;
}
private lineModel[] mLine;
private LayoutInflater mInflater;
@markbratanov
markbratanov / gist:5541928
Created May 8, 2013 17:08
kicad lib for beaglebone headers.
EESchema-LIBRARY Version 2.3 Date: Wed 23 May 2012 07:07:57 PM EDT
#encoding utf-8
#
# BEAGLEBONE
#
DEF BEAGLEBONE U 0 1 Y Y 5 F N
F0 "U" 50 -50 60 H V C CNN
F1 "BEAGLEBONE" 250 -150 60 H V C CNN
DRAW
P 5 4 0 0 500 0 -50 0 -50 2300 -50 2400 500 2400 N
Logfile of Trend Micro HijackThis v2.0.5
Scan saved at 9:12:33 PM, on 21-May-14
Platform: Unknown Windows (WinNT 6.02.1008)
MSIE: Internet Explorer v11.0 (11.00.9600.17037)
FIREFOX: 28.0 (en-US)
Boot mode: Normal
Running processes:
C:\Program Files\Microsoft Office 15\Root\VFS\ProgramFilesCommonX86\Microsoft Shared\OFFICE15\CSISYNCCLIENT.EXE
@markbratanov
markbratanov / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<polymer-element name="my-element">
<template>
2014-11-20 15:40:18,537 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2014-11-20 15:40:18,577 [ 40] INFO - #com.intellij.idea.Main - IDE: Android Studio (build #AI-135.1538390, 23 Oct 2014 00:00)
2014-11-20 15:40:18,577 [ 40] INFO - #com.intellij.idea.Main - OS: Mac OS X (10.10, x86_64)
2014-11-20 15:40:18,577 [ 40] INFO - #com.intellij.idea.Main - JRE: 1.6.0_65-b14-466.1-11M4716 (Apple Inc.)
2014-11-20 15:40:18,577 [ 40] INFO - #com.intellij.idea.Main - JVM: 20.65-b04-466.1 (Java HotSpot(TM) 64-Bit Server VM)
2014-11-20 15:40:18,592 [ 55] INFO - #com.intellij.idea.Main - JVM Args: -Dfile.encoding=UTF-8 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djsse.enableSNIExtension=false -XX:+UseCodeCacheFlushing -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:+HeapDumpOnOutOfMemoryError -Xve
apply plugin: 'com.android.application'
repositories {
mavenCentral()
}
android {
compileSdkVersion 21
buildToolsVersion "20.0.0"
package com.starkenglish;
import android.app.Activity;
import android.app.ActionBar;
import android.app.Fragment;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.content.SharedPreferences;
package com.starkenglish;
import android.app.Activity;
import android.app.ActionBar;
import android.app.AlertDialog;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.ProgressDialog;
import android.content.Context;
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
android:orientation="vertical"
tools:context="com.starkenglish.MainActivity$PlaceholderFragment">