Skip to content

Instantly share code, notes, and snippets.

View IshamMohamed's full-sized avatar
:shipit:
() => {}

Isham Mohamed IshamMohamed

:shipit:
() => {}
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace PrintPI
{
class Program
public MainPage()
{
InitializeComponent();
startBackgroundMusic();
}
private void startBackgroundMusic()
{
this.Dispatcher.BeginInvoke(() =>
{
/*Thanks to @lukehaas all the CSS codes are from him*/
/*=Loader1's CSS code, this is a Facebook loader like loader=*/
.loader1,
.loader1:before,
.loader1:after {
background: #FFF;
-webkit-animation: load1 1s infinite ease-in-out;
animation: load1 1s infinite ease-in-out;
width: 1em;
height: 4em;
@IshamMohamed
IshamMohamed / ASCII2015
Created January 1, 2015 07:14
This is the C# snippt to generate the ASCII of "Happy 2015" here @ http://programmium.wordpress.com/2015/01/01/happy-new-year-with-pal%C2%B7in%C2%B7drome/
using System;
namespace ASCII_Art
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(" _ _ ___ ___ __ _____ ");
Console.WriteLine(" | | | | |__ \\ / _ \\/_ | ____|");
@IshamMohamed
IshamMohamed / emoji
Created January 12, 2015 19:50
Emoji base
๐Ÿ˜„ ๐Ÿ˜ƒ ๐Ÿ˜€ ๐Ÿ˜Š โ˜บ ๐Ÿ˜‰ ๐Ÿ˜ ๐Ÿ˜˜ ๐Ÿ˜š ๐Ÿ˜— ๐Ÿ˜™ ๐Ÿ˜œ ๐Ÿ˜ ๐Ÿ˜› ๐Ÿ˜ณ ๐Ÿ˜ ๐Ÿ˜” ๐Ÿ˜Œ ๐Ÿ˜’ ๐Ÿ˜ž ๐Ÿ˜ฃ ๐Ÿ˜ข ๐Ÿ˜‚ ๐Ÿ˜ญ ๐Ÿ˜ช ๐Ÿ˜ฅ ๐Ÿ˜ฐ ๐Ÿ˜… ๐Ÿ˜“ ๐Ÿ˜ฉ ๐Ÿ˜ซ ๐Ÿ˜จ ๐Ÿ˜ฑ ๐Ÿ˜  ๐Ÿ˜ก ๐Ÿ˜ค ๐Ÿ˜– ๐Ÿ˜† ๐Ÿ˜‹ ๐Ÿ˜ท ๐Ÿ˜Ž ๐Ÿ˜ด ๐Ÿ˜ต ๐Ÿ˜ฒ ๐Ÿ˜Ÿ ๐Ÿ˜ฆ ๐Ÿ˜ง ๐Ÿ˜ˆ ๐Ÿ‘ฟ ๐Ÿ˜ฎ ๐Ÿ˜ฌ ๐Ÿ˜ ๐Ÿ˜• ๐Ÿ˜ฏ ๐Ÿ˜ถ ๐Ÿ˜‡ ๐Ÿ˜ ๐Ÿ˜‘ ๐Ÿ‘ฒ ๐Ÿ‘ณ ๐Ÿ‘ฎ ๐Ÿ‘ท ๐Ÿ’‚ ๐Ÿ‘ถ ๐Ÿ‘ฆ ๐Ÿ‘ง ๐Ÿ‘จ ๐Ÿ‘ฉ ๐Ÿ‘ด ๐Ÿ‘ต ๐Ÿ‘ฑ ๐Ÿ‘ผ ๐Ÿ‘ธ ๐Ÿ˜บ ๐Ÿ˜ธ ๐Ÿ˜ป ๐Ÿ˜ฝ ๐Ÿ˜ผ ๐Ÿ™€ ๐Ÿ˜ฟ ๐Ÿ˜น ๐Ÿ˜พ ๐Ÿ‘น ๐Ÿ‘บ ๐Ÿ™ˆ ๐Ÿ™‰ ๐Ÿ™Š ๐Ÿ’€ ๐Ÿ‘ฝ ๐Ÿ’ฉ ๐Ÿ”ฅ โœจ ๐ŸŒŸ ๐Ÿ’ซ ๐Ÿ’ฅ ๐Ÿ’ข ๐Ÿ’ฆ ๐Ÿ’ง ๐Ÿ’ค ๐Ÿ’จ ๐Ÿ‘‚ ๐Ÿ‘€ ๐Ÿ‘ƒ ๐Ÿ‘… ๐Ÿ‘„ ๐Ÿ‘ ๐Ÿ‘Ž ๐Ÿ‘Œ ๐Ÿ‘Š โœŠ โœŒ ๐Ÿ‘‹ โœ‹ ๐Ÿ‘ ๐Ÿ‘† ๐Ÿ‘‡ ๐Ÿ‘‰ ๐Ÿ‘ˆ ๐Ÿ™Œ ๐Ÿ™ โ˜ ๐Ÿ‘ ๐Ÿ’ช ๐Ÿšถ ๐Ÿƒ ๐Ÿ’ƒ ๐Ÿ‘ซ ๐Ÿ‘ช ๐Ÿ‘ฌ ๐Ÿ‘ญ ๐Ÿ’ ๐Ÿ’‘ ๐Ÿ‘ฏ ๐Ÿ™† ๐Ÿ™… ๐Ÿ’ ๐Ÿ™‹ ๐Ÿ’† ๐Ÿ’‡ ๐Ÿ’… ๐Ÿ‘ฐ ๐Ÿ™Ž ๐Ÿ™ ๐Ÿ™‡ ๐ŸŽฉ ๐Ÿ‘‘ ๐Ÿ‘’ ๐Ÿ‘Ÿ ๐Ÿ‘ž ๐Ÿ‘ก ๐Ÿ‘  ๐Ÿ‘ข ๐Ÿ‘• ๐Ÿ‘” ๐Ÿ‘š ๐Ÿ‘— ๐ŸŽฝ ๐Ÿ‘– ๐Ÿ‘˜ ๐Ÿ‘™ ๐Ÿ’ผ ๐Ÿ‘œ ๐Ÿ‘ ๐Ÿ‘› ๐Ÿ‘“ ๐ŸŽ€ ๐ŸŒ‚ ๐Ÿ’„ ๐Ÿ’› ๐Ÿ’™ ๐Ÿ’œ ๐Ÿ’š โค ๐Ÿ’” ๐Ÿ’— ๐Ÿ’“ ๐Ÿ’• ๐Ÿ’– ๐Ÿ’ž ๐Ÿ’˜ ๐Ÿ’Œ ๐Ÿ’‹ ๐Ÿ’ ๐Ÿ’Ž ๐Ÿ‘ค ๐Ÿ‘ฅ ๐Ÿ’ฌ ๐Ÿ‘ฃ ๐Ÿ’ญ ๐Ÿถ ๐Ÿบ ๐Ÿฑ ๐Ÿญ ๐Ÿน ๐Ÿฐ ๐Ÿธ ๐Ÿฏ ๐Ÿจ ๐Ÿป ๐Ÿท ๐Ÿฝ ๐Ÿฎ ๐Ÿ— ๐Ÿต ๐Ÿ’ ๐Ÿด ๐Ÿ‘ ๐Ÿ˜ ๐Ÿผ ๐Ÿง ๐Ÿฆ ๐Ÿค ๐Ÿฅ ๐Ÿฃ ๐Ÿ” ๐Ÿ ๐Ÿข ๐Ÿ› ๐Ÿ ๐Ÿœ ๐Ÿž ๐ŸŒ ๐Ÿ™ ๐Ÿš ๐Ÿ  ๐ŸŸ ๐Ÿฌ ๐Ÿณ ๐Ÿ‹ ๐Ÿ„ ๐Ÿ ๐Ÿ€ ๐Ÿƒ ๐Ÿ… ๐Ÿ‡ ๐Ÿ‰ ๐ŸŽ ๐Ÿ ๐Ÿ“ ๐Ÿ• ๐Ÿ– ๐Ÿ ๐Ÿ‚ ๐Ÿฒ ๐Ÿก ๐ŸŠ ๐Ÿซ ๐Ÿช ๐Ÿ† ๐Ÿˆ ๐Ÿฉ ๐Ÿพ ๐Ÿ’ ๐ŸŒธ ๐ŸŒท ๐Ÿ€ ๐ŸŒน ๐ŸŒป ๐ŸŒบ ๐Ÿ ๐Ÿƒ ๐Ÿ‚ ๐ŸŒฟ ๐ŸŒพ ๐Ÿ„ ๐ŸŒต ๐ŸŒด ๐ŸŒฒ ๐ŸŒณ ๐ŸŒฐ ๐ŸŒฑ ๐ŸŒผ ๐ŸŒ ๐ŸŒž ๐ŸŒ ๐ŸŒš ๐ŸŒ‘ ๐ŸŒ’ ๐ŸŒ“ ๐ŸŒ” ๐ŸŒ• ๐ŸŒ– ๐ŸŒ— ๐ŸŒ˜ ๐ŸŒœ ๐ŸŒ› ๐ŸŒ™ ๐ŸŒ ๐ŸŒŽ ๐ŸŒ ๐ŸŒ‹ ๐ŸŒŒ ๐ŸŒ  โญ โ˜€ โ›… โ˜ โšก โ˜” โ„ โ›„ ๐ŸŒ€ ๐ŸŒ ๐ŸŒˆ ๐ŸŒŠ ๐ŸŽ ๐Ÿ’ ๐ŸŽŽ ๐ŸŽ’ ๐ŸŽ“ ๐ŸŽ ๐ŸŽ† ๐ŸŽ‡ ๐ŸŽ ๐ŸŽ‘ ๐ŸŽƒ ๐Ÿ‘ป ๐ŸŽ… ๐ŸŽ„ ๐ŸŽ ๐ŸŽ‹ ๐ŸŽ‰ ๐ŸŽŠ ๐ŸŽˆ ๐ŸŽŒ ๐Ÿ”ฎ ๐ŸŽฅ ๐Ÿ“ท ๐Ÿ“น ๐Ÿ“ผ ๐Ÿ’ฟ ๐Ÿ“€ ๐Ÿ’ฝ ๐Ÿ’พ ๐Ÿ’ป ๐Ÿ“ฑ โ˜Ž ๐Ÿ“ž ๐Ÿ“Ÿ ๐Ÿ“  ๐Ÿ“ก ๐Ÿ“บ ๐Ÿ“ป ๐Ÿ”Š ๐Ÿ”‰ ๐Ÿ”ˆ ๐Ÿ”‡ ๐Ÿ”” ๐Ÿ”• ๐Ÿ“ข ๐Ÿ“ฃ โณ โŒ› โฐ โŒš ๐Ÿ”“ ๐Ÿ”’ ๐Ÿ” ๐Ÿ” ๐Ÿ”‘ ๐Ÿ”Ž ๐Ÿ’ก ๐Ÿ”ฆ ๐Ÿ”† ๐Ÿ”… ๐Ÿ”Œ ๐Ÿ”‹ ๐Ÿ” ๐Ÿ› ๐Ÿ›€ ๐Ÿšฟ ๐Ÿšฝ ๐Ÿ”ง ๐Ÿ”ฉ ๐Ÿ”จ ๐Ÿšช ๐Ÿšฌ ๐Ÿ’ฃ ๐Ÿ”ซ ๐Ÿ”ช ๐Ÿ’Š ๐Ÿ’‰ ๐Ÿ’ฐ ๐Ÿ’ด ๐Ÿ’ต ๐Ÿ’ท ๐Ÿ’ถ ๐Ÿ’ณ ๐Ÿ’ธ ๐Ÿ“ฒ ๐Ÿ“ง ๐Ÿ“ฅ ๐Ÿ“ค โœ‰ ๐Ÿ“ฉ ๐Ÿ“จ ๐Ÿ“ฏ ๐Ÿ“ซ ๐Ÿ“ช ๐Ÿ“ฌ ๐Ÿ“ญ ๐Ÿ“ฎ ๐Ÿ“ฆ ๐Ÿ“ ๐Ÿ“„ ๐Ÿ“ƒ ๐Ÿ“‘ ๐Ÿ“Š ๐Ÿ“ˆ ๐Ÿ“‰ ๐Ÿ“œ ๐Ÿ“‹ ๐Ÿ“… ๐Ÿ“† ๐Ÿ“‡ ๐Ÿ“ ๐Ÿ“‚ โœ‚ ๐Ÿ“Œ ๐Ÿ“Ž โœ’ โœ ๐Ÿ“ ๐Ÿ“ ๐Ÿ“• ๐Ÿ“— ๐Ÿ“˜ ๐Ÿ“™ ๐Ÿ““ ๐Ÿ“” ๐Ÿ“’ ๐Ÿ“š ๐Ÿ“– ๐Ÿ”– ๐Ÿ“› ๐Ÿ”ฌ ๐Ÿ”ญ ๐Ÿ“ฐ ๐ŸŽจ ๐ŸŽฌ ๐ŸŽค ๐ŸŽง ๐ŸŽผ ๐ŸŽต ๐ŸŽถ ๐ŸŽน ๐ŸŽป ๐ŸŽบ ๐ŸŽท ๐ŸŽธ ๐Ÿ‘พ ๐ŸŽฎ ๐Ÿƒ ๐ŸŽด ๐Ÿ€„ ๐ŸŽฒ ๐ŸŽฏ ๐Ÿˆ ๐Ÿ€ โšฝ โšพ ๐ŸŽพ ๐ŸŽฑ ๐Ÿ‰ ๐ŸŽณ โ›ณ ๐Ÿšต ๐Ÿšด ๐Ÿ ๐Ÿ‡ ๐Ÿ† ๐ŸŽฟ ๐Ÿ‚ ๐ŸŠ ๐Ÿ„ ๐ŸŽฃ โ˜• ๐Ÿต ๐Ÿถ ๐Ÿผ ๐Ÿบ ๐Ÿป ๐Ÿธ ๐Ÿน ๐Ÿท ๐Ÿด ๐Ÿ• ๐Ÿ” ๐ŸŸ ๐Ÿ— ๐Ÿ– ๐Ÿ ๐Ÿ› ๐Ÿค ๐Ÿฑ ๐Ÿฃ ๐Ÿฅ ๐Ÿ™ ๐Ÿ˜ ๐Ÿš ๐Ÿœ ๐Ÿฒ ๐Ÿข ๐Ÿก ๐Ÿณ ๐Ÿž ๐Ÿฉ ๐Ÿฎ ๐Ÿฆ ๐Ÿจ ๐Ÿง ๐ŸŽ‚
@IshamMohamed
IshamMohamed / Function_getCurrencyCode.vb
Created January 5, 2013 18:22
A visual basic method for get currency code for various apps using google finance. If we put the currency values in a combo box, we can use this function with SelectedIndex() method of the combo box eg : fromCurrency = getCurrencyCode(toCurrencyListCombo.SelectedIndex)
Private Function getCurrencyCode(ByVal selectedIndex As Integer) As String
Dim str As String = ""
selectedIndex += 1
Select Case selectedIndex
Case 1
str = "AED"
Case 2
str = "ANG"
Case 3
str = "ARS"
@IshamMohamed
IshamMohamed / mtk_custom_usb.h
Created May 18, 2013 17:41
Custom USB kernal code for MTK USB device.
#ifndef MTK_USB_CUSTOM_H
#define MTK_USB_CUSTOM_H
/* Force full-speed is not guaranteed with adb function, use it with care! */
//#define USB_FORCE_FULL_SPEED
#define USB_MS_PRODUCT_ID 0x0001
#define USB_MS_ADB_PRODUCT_ID 0x0c03
#define USB_RNDIS_PRODUCT_ID 0x0003
#define USB_RNDIS_ADB_PRODUCT_ID 0x0004
@IshamMohamed
IshamMohamed / SampleMeaningsCodeOne.py
Last active December 29, 2015 01:59
This is a sample Python code impementation of Meanings API of Easy APIs Project (http://gcdc2013-easyapisproject.appspot.com/)
import urllib2
#read response for word 'Excitement'
response = urllib2.urlopen('http://gcdc2013-easyapisproject.appspot.com/meanings?q=excitement')
html = response.read()
html = html[1:] #remove first {
html = html[:-1] #remove last }
html = html.split('}{') #split with '}{'
print html[0] #Print 1st result
print html[1] #Print 2ns result
@IshamMohamed
IshamMohamed / MeaningsAPI.py
Created November 22, 2013 10:27
This is a Python implementation of Meanings API from Easy APIs Project (http://gcdc2013-easyapisproject.appspot.com/) to get input from user and give meanings.
import urllib2
print "Enter a word:",
q = raw_input() #get word from user
response = urllib2.urlopen('http://gcdc2013-easyapisproject.appspot.com/meanings?q='+q)
html = response.read()
html = html[1:] #remove first {
html = html[:-1] #remove last }
html = html.split('}{') #split and put each resutls to array
for meanings in html:
print meanings
@IshamMohamed
IshamMohamed / WeatherAPI.py
Last active December 29, 2015 02:09
Easy APIs Project (http://gcdc2013-easyapisproject.appspot.com/) Weather API implementation in Python
# -*- coding: utf-8 -*-
import urllib
import urllib2
def celsius(a):
responsex = urllib2.urlopen('http://gcdc2013-easyapisproject.appspot.com/unitconversion?q=' + urllib.quote(a + ' in celsius'))
html = responsex.read()
responsex.close()
html = html[1:] #remove first {
html = html[:-1] #remove last }