Skip to content

Instantly share code, notes, and snippets.

View ruel's full-sized avatar
🎯
Focusing

Ruel ruel

🎯
Focusing
View GitHub Profile
@ruel
ruel / adbgr.sh
Created May 17, 2013 00:42
Script for building and running APK in android command line.
#!/bin/sh
# Version: 051613001
# This is used for debugging APKs. This command should be ran in the root directory of the project
# The name of the apk file is < ProjectName >-debug.apk and inside the bin directory
# Firstly, run ant debug
ant debug
@ruel
ruel / CueProvider.vb
Created August 6, 2012 06:07
CueProvider for VB.NET
Imports System.Runtime.InteropServices
Imports System.Windows.Forms
Namespace CueProvider
Class CueProvider
Private Const EM_SETCUEBANNER As Integer = &H1501
<DllImport("user32.dll", CharSet := CharSet.Auto)> _
Private Shared Function SendMessage(hWnd As IntPtr, msg As Integer, wParam As Integer, <MarshalAs(UnmanagedType.LPWStr)> lParam As String) As Int32
End Function
@ruel
ruel / BasicReq.cs
Created March 11, 2011 00:16
A basic HTTP request class in C# that makes things a little bit easier.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Drawing;
namespace BasicReq
{
@ruel
ruel / infb.py
Created November 26, 2010 12:07
A script to scrape information from your facebook friends.
#!/usr/bin/python
'''
InFB - Information Facebook
Usage: infb.py [email protected] password
http://ruel.me
Copyright (c) 2011, Ruel Pagayon
All rights reserved.
@ruel
ruel / Dupline
Created November 24, 2010 16:24
This script identifies the duplicate lines with their corresponding line numbers within a file.
#!/usr/bin/perl # 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 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the