Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Saleh Souzanchi zoghal

🎯
Focusing
Block or report user

Report or block zoghal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<!DOCTYPE html>
<html>
<head>
<!--
Copyright (c) 2014-2017, Jan Bösenberg & Jürg Lehni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
View index.html
<!DOCTYPE html>
<html>
<head>
<!--
Copyright (c) 2014-2017, Jan Bösenberg & Jürg Lehni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@LettError
LettError / copyCurrentGitVersionToPrevLayer.py
Last active Jul 4, 2019
RoboFont: copy glif from git repo to layer in current glyph.
View copyCurrentGitVersionToPrevLayer.py
"""
Assuming you have
a UFO open in RoboFont
a current glyph selected
and furthermore that
this glyph is part of a git repository
and that you have done some work on it
and would like to compare the current state in robofont
@Noitidart
Noitidart / _ff-addon-createResourceURI.js
Created Jul 12, 2015
_ff-addon-createResourceURI - Createa resource:// URI on the fly.
View _ff-addon-createResourceURI.js
let res = Services.io.getProtocolHandler("resource").QueryInterface(Ci.nsIResProtocolHandler);
res.setSubstitution("rawr", Services.io.newURI('http://www.bing.com/',null,null));
// now try navigating to resource://rawr it will load bing
@hallaji
hallaji / README.markdown
Last active Aug 9, 2017
Iranian National Identifier Validator
View README.markdown

Iranian National Identifier Validator

A validator for Iranian (Persian) national identifier or social number

Languages

c#, java, javascript, php

Types

parameter: string (It doesn't support arabic or persian numbers)
return: boolean

View regev_snapshot.py
from selenium import webdriver
from PIL import Image
import datetime
filename = "miri_regev_"+datetime.datetime.now().strftime("%Y.%m.%d.%H:%M:%S")+".png"
fox = webdriver.Firefox()
fox.get('https://www.facebook.com/miri.regev.il')
fox.save_screenshot(filename) # saves screenshot of entire page
fox.quit()
@ImJasonH
ImJasonH / markdown.css
Last active Apr 5, 2020
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
View markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
View Controller_BookmarksController.php
<?php
namespace App\Controller;
use App\Controller\AppController;
/**
* Bookmarks Controller
*
* @property App\Model\Table\BookmarksTable $Bookmarks
*/
View nginx_builder_hota.sh
#!/bin/bash
#
# Nginx build script - jacob@ycnrg.org
#
# Updates code from git/hg repos (or clones if it doesn't exist) for both
# nginx and extra modules, then fires off make
#
# Revision: 3
#
PREFIX="/usr"
View nginx-update
cd ~/git/nginx
rm -rf nginx-1*
rm -rf openssl-1*
wget https://www.openssl.org/source/openssl-1.0.1k.tar.gz
wget http://nginx.org/download/nginx-1.7.10.tar.gz
tar xzvf openssl* && rm -rf openssl-1.0.1k.tar.gz
tar -xzvf nginx-1*.tar.gz
rm -rf nginx-1*.tar.gz
cd echo-nginx-module && git pull && cd ../
cd headers-more-nginx-module && git pull && cd ../
You can’t perform that action at this time.