Skip to content

Instantly share code, notes, and snippets.


Afzal Najam AfzalivE

View GitHub Profile
AfzalivE / gist:e26d4b10efdd7239031e
Created May 23, 2014 — forked from anonymous/gist:11010752
Inspiration for openGL stuff
View gist:e26d4b10efdd7239031e
void setup(){
float f(int i, int j, float q){
View gist:82506de2e43961212dd6
public class MyService extends Service implements OnSharedPreferenceChangeListener {
private Looper mServiceLooper;
private ServiceHandler mServiceHandler;
public void onCreate() {
// Start up the thread running the service. Note that we create a
// separate thread because the service normally runs in the process's
View gist:09ea8058441236dacfb6
static String createAuthHeader(String username, String password) {
return "Basic " + Base64.encodeToString((username + ":" + password).getBytes(), Base64.NO_WRAP);
package com.kiwiwearables.kiwilib;
* Copyright (C) 2014 The Android Open Source Project
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software distributed under the License
AfzalivE /
Last active Aug 29, 2015
Bintray publishing
group = com.afzaln
baseName = fab
pkgName = FloatingActionButton
description = FloationActionButton implementation forked from Clans, has automatic quick return on scroll
siteUrl =
issuesUrl =
gitUrl =
AfzalivE / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
AfzalivE / gist:eea5918ac0c61eb08343
Last active Aug 29, 2015 — forked from ljubisa987/gist:e33cd5597da07172c55d
TextInputLayout with fixed "hints not showing"
View gist:eea5918ac0c61eb08343
package com.centralway.numbrs.numbrsapp.views;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
AfzalivE / reminder12-04
Created Mar 23, 2012
Ubuntu 12.04 reminder This did not prevent a disaster.
View reminder12-04
To remove upon fresh install:
sudo aptitude remove aisleriot mahjongg gnome-sudoku gnomine shotwell remmina thunderbird gwibber vino rhythmbox ubuntuone-installer
To install upon fresh install:
sudo add-apt-repository ppa:tualatrix/ppa
sudo add-apt-repository ppa:cairo-dock-team/weekly
sudo add-apt-repository ppa:synapse-core/ppa
sudo aptitude install ubuntu-tweak myunity vlc gnome-panel synapse cairo-dock
compiz config settings manager
View gist:8ae077720a3a1e3e9ac6
* A module for dependencies which require a {@link android.content.Context} or
* {@link} to create.
library = true
public class ContextModule {
private Context appContext;
View Preferences.sublime-settings
"auto_complete_delay": 0,
"bold_folder_labels": true,
"caret_style": "phase",
"close_windows_when_empty": true,
"color_scheme": "Packages/Theme - Aqua/Color Schemes/Base16 Tomorrow Night Aqua.tmTheme",
"ensure_newline_at_eof_on_save": true,