Skip to content

Instantly share code, notes, and snippets.

@AmrEldib
AmrEldib / index.html
Created July 4, 2024 01:56
Example of Styling using CSS only (CSS Zen Garden). Change the referenced CSS file to try different styles
<!DOCTYPE html>
<html lang="en">
<head>
<title data-rh="true">Taddy Ink</title>
<meta data-rh="true" itemprop="name" content="Taddy Ink" />
<meta data-rh="true" itemprop="description"
content="Tools for webtoon creators to build, grow, and monetize their audience." />
<meta data-rh="true" itemprop="image" content="https://ax0.taddy.org/general/taddy-logo-white-background.png" />
<meta data-rh="true" name="description"
@AmrEldib
AmrEldib / git.lua
Created February 29, 2016 05:33
Customize Windows Cmder Prompt
---
-- Find out current branch
-- @return {false|git branch name}
---
function get_git_branch()
for line in io.popen("git branch 2>nul"):lines() do
local m = line:match("%* (.+)$")
if m then
return m
end
@AmrEldib
AmrEldib / 404ForCaseSensitiveURLs.js
Created February 7, 2016 06:21
Jekyll 404 page on GitHub Pages to fix case sensitive URLs
var allposts = [];
function redirectToCorrectPage() {
{% for post in site.posts %}
allposts.push("{{ site.url }}{{ post.url }}");
{% endfor %}
var url = window.location.toString();
if (url.slice(-1) === "/") {
url = url.slice(0, -1);
}
var allpostsUpperCase = allposts.map(function(value) {
@AmrEldib
AmrEldib / npm-g.md
Last active February 19, 2016 04:37
Recommended Global npm Packages to install

bower
ember-cli
ember-cli-windows
gitignore
jshint
swagger
editorconfig-cli

@AmrEldib
AmrEldib / userstyle.css
Created January 2, 2016 19:32
Updated UserStyle for Better Arabic Font on Twitter
/*
This is a modified version of the userstyle "Twitter Persian/Arabic Optimization"
https://userstyles.org/styles/119923/twitter-persian-arabic-optimization
This modification applies the Arabic font only on text with Arabic language while keeping
other languages with the default font
This is done using the :lang(ar) attribute
http://stackoverflow.com/a/15267560/463
*/
@AmrEldib
AmrEldib / ChocolateyInstalls.txt
Last active August 29, 2015 14:21
Chocolatey Installs
choco install 7zip.install
choco install cmdermini
choco install flashplayerplugin
choco install flashplayeractivex
choco install notepadplusplus.install
choco install sumatrapdf.install
choco install libreoffice
choco install ccleaner
choco install vlc
choco install clover
@AmrEldib
AmrEldib / KeybaseProof.txt
Created April 19, 2015 03:54
Keybase Proof
### Keybase proof
I hereby claim:
* I am AmrEldib on github.
* I am amr (https://keybase.io/amr) on keybase.
* I have a public key whose fingerprint is D629 1605 2F4E 3B96 A510 276E C9DE FAD6 D0F4 A3C9
To claim this, I am signing this object:
@AmrEldib
AmrEldib / AppLogger-GetTempFileName.cs
Created November 11, 2014 02:14
AppLogger-GetTempFileName
string logFilePath = Path.GetTempFileName();
@AmrEldib
AmrEldib / AppLogger-Configure.cs
Created November 11, 2014 02:13
AppLogger-Configure
XmlConfigurator.Configure(stream);
@AmrEldib
AmrEldib / AppLogger-ILog.cs
Created November 11, 2014 02:12
AppLogger-ILog
#if DEBUG
ILog log = LogManager.GetLogger("Logger");
log.Debug("Message");
#endif