git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
100.43.91.14 | |
100.43.91.2 | |
104.236.133.77 | |
107.150.37.26 | |
119.29.82.97 | |
120.192.205.67 | |
120.56.185.132 | |
134.175.183.168 | |
136.243.176.20 | |
136.243.65.215 |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
December 10, 2012
More and more people are realizing that git is awesome. Although the official WordPress source code still lives in an svn repository, you can contribute patches without having to touch svn ever again.
So, without further ado, here’s how you can generate and manage patches for WordPress Core (it assumes you’re comfortable with the command line).
# editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
indent_style = tab |
/// How to get the week number from a date | |
// The code below adds two new functions to the Date object. Add this to your source code. | |
// To get the ISO week number (1-53) of a Date object, mydate, use mydate.getWeek(). | |
// To get the corresponding four-digit year, use mydate.getWeekYear(). | |
// This script is released to the public domain and may be used, modified and | |
// distributed without restrictions. Attribution not necessary but appreciated. | |
// @SOURCE: https://weeknumber.net/how-to/javascript | |
// Returns the ISO week of the date. |
<div class="row"> | |
<div class="col-md-6 mb-4"> | |
[text* your-name akismet:author class:form-control placeholder "نام (ضروری)"] | |
</div> | |
<div class="col-md-6 mb-4"> | |
[email* your-email akismet:author_email class:form-control placeholder "ایمیل (ضروری)"] | |
</div> | |
<div class="col-md-12 mb-4"> |
<?php | |
// @REF: https://github.com/DevRoomOrg/ircheck/issues/1#issuecomment-348672401 | |
// @REF: http://www.aliarash.com/article/shenasameli/shenasa_meli.htm | |
function checkNationalCode($nationalCode) { | |
if (strlen($nationalCode) != 11) | |
return false; | |
$c = intval(substr($nationalCode, 10, 1)); |
// @SOURCE: https://stackoverflow.com/a/4673436/4864081 | |
// First, checks if it isn't implemented yet. | |
if (!String.prototype.format) { | |
String.prototype.format = function() { | |
var args = arguments; | |
return this.replace(/{(\d+)}/g, function(match, number) { | |
return typeof args[number] != 'undefined' | |
? args[number] | |
: match |
کد ۱۲۸ ممکن است به صورت دو طرفه (از هر دو جهت) اسکن شود و محدودیتی هم برای تعداد کاراکترها در هر بارکد وجود ندارد. هر چند ممکن است طول بارکد با توجه به نوع اسکنر مورد استفاده و یا مکان مورد نظر برای چاپ بارکد محدود شود. اما این روش محدودیتی برای طول بارکد ایجاد شده ندارد.
کد ۱۲۸ سه مجموعه کاراکتری متفاوت دارد که در جدول مشخصات بارکد به نامهای Code Set A و Code Set B و Code Set C مشخص شده است. هر کدام از این سه مجموعه کد میتواند با کاراکتر شروع مربوط به خودش مورد انتخاب واقع شود. کاراکتر خاص «shift» در هر مجموعه به شما امکان میدهد تا بتوانید در بین یک کد ست از کد ستهای
PHP strings can be specified not just in two ways, but in four ways.
\'
, and to display a back slash, you can escape it with another backslash \\
(So yes, even single quoted strings are parsed).