originally from: https://gist.github.com/jonschlinkert/5854601
Headings from h1
through h6
are constructed with a #
for each level:
# h1 Heading
originally from: https://gist.github.com/jonschlinkert/5854601
Headings from h1
through h6
are constructed with a #
for each level:
# h1 Heading
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
<?php | |
# Generate file | |
$your_data = array(); | |
$path = "/var/www/html/"; | |
$fp = fopen($path."arrayDetails.txt", "a"); | |
fwrite($fp, print_r($arrayInfo,true)); | |
fclose($fp); |
Below are many examples of function hoisting behavior in JavaScript. Ones marked as works
successfuly print 'hi!' without errors.
To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js
(I may be using incorrect terms below, please forgive me)
/** | |
* Check emoji from string | |
* | |
* @return bool if existed emoji in string | |
*/ | |
function checkEmoji($str) | |
{ | |
$regexEmoticons = '/[\x{1F600}-\x{1F64F}]/u'; | |
preg_match($regexEmoticons, $str, $matches_emo); | |
if (!empty($matches_emo[0])) { |
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |