Skip to content

Instantly share code, notes, and snippets.

View shemul's full-sized avatar
🏠
Working from home

Kief H. Shemul shemul

🏠
Working from home
  • TomTom, Delivery Hero
  • Amsterdam, Netherlands
View GitHub Profile
@shemul
shemul / gist:5f3c7e8d6d1dc85da57d
Last active August 29, 2015 14:20
sensor.java
package sensor.example;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
@shemul
shemul / db_droid.java
Created April 21, 2015 12:35
android_database
package com.database.project;
import android.app.Activity;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.widget.Toast;
public class DatabaseProjectActivity extends Activity {
http://www.dreamincode.net/forums/topic/365881-Convert-ASCII-To-Binary/
org 100h
include 'emu8086.inc'
.model small
.stack
.MODEL SMALL
.STACK 100H
.DATA
PROMPT_1 DB 'Enter the character : $'
PROMPT_2 DB 0DH,0AH,'The ASCII code of the given number in binary form is : $'
PROMPT_3 DB 0DH,0AH,'The number of 1 bits in ASCII code are : $'
.CODE
MAIN PROC
@shemul
shemul / vawel.asm
Created March 30, 2015 13:39
vowel , consonant , number test
.MODEL SMALL
.STACK 100H
.DATA
input_line db ?
MSG1 DB 'Enter Char : $'
str1 db ' is a vowel$'
str2 db ' is a consonant$'
str3 db ' is a number$'
@shemul
shemul / gist:1ebaa8c7da57f860c542
Created March 30, 2015 07:50
assembly calculations
.model small
.stack 100h
.data
MSG1 DB 'A FOR ADDITION S FOR SUB... : $'
MSG2 DB 'INPUT FOR ADDITION$'
INPUT_1 DB 'FIRST NUMBER : $'
INPUT_2 DB 'SECOND NUMBER : $'
@shemul
shemul / android.java
Last active August 29, 2015 14:17
toast,dialoge,notification android
package com.example.here;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.app.AlertDialog;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.DialogInterface;
import android.os.Bundle;
@shemul
shemul / bst.cpp
Created March 28, 2015 19:01
BST implementation by Zitu Sir
#include <iostream>
using namespace std;
struct BSTnode
{
int data;
BSTnode* left;
BSTnode* right;
};
@shemul
shemul / shell_sort.cpp
Last active August 29, 2015 14:16
shell sort
//shell sort
#include <iostream>
using namespace std;
int iCount (int *A,int size)
{
int counter = 0 ;
@shemul
shemul / mergesort.cpp
Created March 2, 2015 18:52
bouble sort with file I/O
// File.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#define MAX_SIZE 100000
using namespace std;
struct Entry