- UpperCamel case for classes. e.g.,
MyClass {}
- lowerCamel case for variable names. e.g.,
myVar = "";
- snake_case for Python functions and other functions delimited with underscores _ e.g.,
my_function();
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
# Author: Pierre-Henry Soria <ph7software@gmail.com> | |
# Copyright: (c) 2012-2017, Pierre-Henry Soria. All Rights Reserved. | |
# License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. | |
## | |
accepted_ext="-name '*.php' -or -name '*.css' -or -name '*.js' -or -name '*.html' -or -name '*.xml' -or -name '*.xsl' -or -name '*.xslt' -or -name '*.json' -or -name '*.yml' -or -name '*.tpl' -or -name '*.phs' -or -name '*.ph7' -or -name '*.sh' -or -name '*.sql' -or -name '*.ini' -or -name '*.md' -or -name '*.markdown' -or -name '.htaccess'" | |
exec="find . -type f \( $accepted_ext \) -print0 | xargs -0 perl -wi -pe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Author: Pierre-Henry Soria <hi@ph7.me> | |
-- Website: https://ph7cms.com | |
-- Copyright: (c) 2011-2019, Pierre-Henry Soria. All Rights Reserved. | |
-- License: GNU General Public License | |
-- | |
--- | |
-- Reset the pH7CMS, admin panel's IP restriction. | |
-- Sometimes, you cannot log in anymore to your admin panel, because your public IP changed, or your website is hosted on a localhost and cannot work with. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Front to the WordPress application. This file doesn't do anything, but loads | |
* wp-blog-header.php which does and tells WordPress to load the theme. | |
* | |
* @package WordPress | |
*/ | |
/** | |
* Tells WordPress to load the WordPress theme and output it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Barriers to speed reading | |
-------------------------- | |
Subvocalizing. Repeating what you read in your head (reading with your ears). | |
If you hear yourself reading, read faster. | |
Vocalizing. If your lips move as you read you are vocalizing your text. As long as you read vocalizing, you will only be able to read as fast as you can speak. | |
Let the texts pass into the mind directly from the eye, skipping the mouth and ear. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<info> | |
<ph7> | |
<social-dating-cms> | |
<upd-alert>false</upd-alert> | |
<name>NaOH</name> | |
<version>7.0.0</version> | |
<sql-shcema-version>1.3.6</sql-shcema-version> | |
<build>1</build> | |
</social-dating-cms> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# qpasswd - password generator from quantum RNG | |
require 'open-uri' | |
rng = 'https://qrng.anu.edu.au/wp-content/plugins/colours-plugin/get_block_alpha.php' | |
ARGV.size < 1 ? pw_size = 16 : pw_size = ARGV[0].to_i | |
data = open(rng).read.strip.split('') | |
output = data.sample(pw_size) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Pierre-Henry Soria | |
email = $EMAIL_ADDRESS | |
[init] | |
defaultBranch = main | |
[color] | |
diff = auto | |
status = auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## | |
## | |
## Get all Udemy Courses with 100% off Coupons thanks to growthcoupon.com & Importer.io | |
## | |
########## | |
from json import loads | |
from bs4 import BeautifulSoup | |
import mechanize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}' |
OlderNewer