Skip to content

Instantly share code, notes, and snippets.

View mShady's full-sized avatar

Shady M. Najib mShady

View GitHub Profile
@mShady
mShady / CopySQLiteDb.cs
Last active December 19, 2015 19:49
Using your own Pre-populated SQLite database in (Xamarin.)Android applications
// The Android's default system path of your application database is
//private static string DB_PATH = "/data/data/<your package name>/databases/";
// But if you're using the SQLite Plugin from MVVM-Cross like me you should use the path below
private static string DB_PATH = "/data/data/<your package name>/files/";
private static string DB_NAME = "MyDB.sqlite";
private void copyDataBase()
{
var myInput = applicationContext.Assets.Open(DB_NAME);
@mShady
mShady / GReader_Fix.js
Created March 3, 2011 19:05
Google Reader Share button Fix
_IS_MULTILOGIN_ENABLED=true;
or
_IS_MULTILOGIN_ENABLED=false;
or better
_IS_MULTILOGIN_ENABLED=((typeof(_IS_MULTILOGIN_ENABLED)=="undefined")?false:_IS_MULTILOGIN_ENABLED);
@mShady
mShady / .hgignore
Created November 4, 2010 11:45
My "costume" Ignore file for Visual Studio 2008/2010
# Ignore file for Visual Studio 2008/2010
# Shady M. Najib, @mShady
# use glob syntax
syntax: glob
# Ignore Visual Studio 2008 files
*.obj
*.exe
static void Main(string[] args)
{
int س;
س = 10;
// x = 10;
اطبع_الرقم(س);
// Print_Number(x);
}
static void اطبع_الرقم(int س)
<a href="#"
onclick="window.external.AddSearchProvider('http://localhost/SearchProviders/delicious.xml')">
Add delicious Search to your browser
</a>
<Image width="16" height="16">data:image/x-icon;base64,AAA......AAA==</Image>
<link rel="search"
type="application/opensearchdescription+xml"
href="http://localhost/SearchProviders/delicious.xml"
title="Delicious" />
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>My Delicious</ShortName>
<Description>Search Shady’s Delicious Bookmarks</Description>
<Tags>Delicious Bookmarks Search Favorites</Tags>
<Image width="16" height="16" type="image/x-icon">http://delicious.com/favicon.ico</Image>
<Url type="text/html"
template="http://delicious.com/search?p={searchTerms}&amp;context=userposts|m.shady|&amp;lc=1"/>
</OpenSearchDescription>
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Test!");
Console.Read();
}
}