Skip to content

Instantly share code, notes, and snippets.

View tjstyle's full-sized avatar

Teguh Sobirin tjstyle

View GitHub Profile
@tjstyle
tjstyle / recovery.c
Created July 11, 2011 23:57
android_bootable_recovery
/*
* Copyright (C) 2007 The Android Open Source Project
* Copyright (c) 2010, Code Aurora Forum. All rights reserved.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
/*
* Copyright (C) 2007 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@tjstyle
tjstyle / bu21018mwv.c
Created October 31, 2011 18:21
FB0 Touchscreen driver
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/i2c.h>
#include <linux/irq.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/earlysuspend.h>
#include <mach/gpio.h>
#include <mach/vreg.h>
@tjstyle
tjstyle / bu21018mwv-ics.idc
Created November 22, 2011 16:33
IDC files for FIH-FB0
# Copyright (C) 2010 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@tjstyle
tjstyle / t1310.c
Created January 23, 2012 13:43
LGMS910-t1310
/*
* drivers/input/touchscreen/t1310.c - Touch driver
*
* Copyright (C) 2010 LGE, Inc.
* Author: Cho, EunYoung [ey.cho@lge.com]
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
@tjstyle
tjstyle / makedmg.sh
Created May 17, 2012 00:41
DMG Creation Script
#!/bin/bash
# DMG Creation Script
# Usage: makedmg <imagename> <imagetitle> <imagesize (MB)> <contentdir>
#
# imagename: The output file name of the image, ie foo.dmg
# imagetitle: The title of the DMG File as displayed in OS X
# imagesize: The size of the DMG you're creating in MB (Blame Linux for the fixed size limitation!!)
# contentdir: The directory containing the content you want the DMG file to contain
#
@tjstyle
tjstyle / gist:3802610
Created September 28, 2012 23:34 — forked from mosabua/gist:1316903
ExpandableListFragment
package android.support.v4.app;
import android.os.Bundle;
import android.os.Handler;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnCreateContextMenuListener;
@tjstyle
tjstyle / client.java
Last active December 15, 2015 18:29 — forked from nurularifins/client.java
package com.example.serverclient;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
/*
* Sidr
* https://github.com/artberri/sidr
*
* Copyright (c) 2013 Alberto Varela
* Licensed under the MIT license.
*
* Using fixed version (curtesy of MaddinXx) compatible with jQuery 1.8+ found at: https://raw.github.com/MaddinXx/sidr/master/src/jquery.sidr.js
* tested with jQuery 1.10.2
*/