Change A Href All Colors with CSS


Change A Href All Colors with CSS

a, a:link, a:visited, a:hover, a:active {
  color: #fff;
}


Vertical Align Center


Yatay/Dikey Ortala

<div style="position: relative;">
  <button class="center">PHP</button>
</div>

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

Sadece Dikey Ortala

<div style="position: relative;">
  <button class="center">PHP</button>
</div>

.center {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

Sadece Yatay Ortala

<div style="position: relative;">
  <button class="center">PHP</button>
</div>

.center {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

Div İçinde Span Ortala

<div class="container">
  <button class="center">PHP</button>
</div>

.container {
  height: 25px;
  line-height: 25px;
  text-align: center;
}
.center {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
}


Javascript Reload Page


Best way for reload the page with javascript:

window.location.reload(false);

True:  load from server.
False: load from cache.

Imagick Vector (Pdf, Svg) to Jpg


Find best resulation and apply for all vector image.
$imagick = new Imagick();
$imagick->setResolution(100,100);
$imagick->readimage("image.svg[0]"); //or "image.pdf[0]"
/* Apply Best Resolution */
$geo=$imagick->getImageGeometry();
$geo_height = intval($geo['height']);
$geo_width = intval($geo['width']);
if ($geo_width > 800 || $geo_height > 800) {
    //do not do anything if one of them is larger than 800px
}
else {
    if ($geo_width > $geo_height) {
        $r = round(800 / $geo_width) * 150;
    }
    else {
        $r = round(800 / $geo_height) * 150;
    }
    //readimage with new resolution
    $imagick->setResolution($r,$r);
    $imagick->readimage("image.svg[0]");
}
/* Apply Best Resolution End */

Paylaşım Linkleri Oluşturma (Share Links)

Create Share Links

Twitter
http://twitter.com/share?text=TITLE&url=URL

Facebook
http://www.facebook.com/sharer.php?u=URL

Pinterest
http://pinterest.com/pin/create/button/?url=URL&description=TITLE

LinkedIn
https://www.linkedin.com/shareArticle?mini=true&url=URL&title=TITLE

Kaynak

Numaralarına Göre Kredi Kartı Tipleri (Types of Credit Cards)

Types of Credit Cards

Issuing network
IIN ranges
Active
Length
Validation
American Express34, 37[5]Yes15[6]Luhn algorithm
Bankcard[7]5610, 560221–560225No16
China T-Union31[8][9]Yes19
China UnionPay62[10], 81Yes16–19[11]
Diners Club enRoute2014, 2149No15no validation
Diners Club International[12]36Yes14–19[11]Luhn algorithm
300–305, 3095, 38–39Yes16–19[11]
Diners Club United States & Canada[13]54, 55 (MasterCard co-branded)Yes16
Discover Card6011, 622126 - 622925, 624000 - 626999, 628200 - 628899,[14] 64, 65Yes16–19[11]
RuPay60, 6521, 6522Yes16
InterPayment636Yes16–19
InstaPayment637-639Yes16
JCB3528–3589Yes16–19[11]
Laser6304, 6706, 6771, 6709No16–19
Maestro UK6759, 676770, 676774[15]Yes12–19
Maestro50, 56–69[15]Yes12–19
Dankort5019Yes16
4571 (Visa co-branded)[16]Yes16
MIR2200–2204Yes16
NPS Pridnestrovie6054740-6054744Yes16
Mastercard2221-2720[17]Yes 2017[18]16
51–55Yes16
Solo6334, 6767No16, 18, 19
Switch4903, 4905, 4911, 4936, 564182, 633110, 6333, 6759No16, 18, 19
Troy979200–979289Yes16
Visa4 (including related/partner brands: Dankort, Electron, etc.)Yes16
UATP1Yes15
Verve506099–506198, 650002–650027Yes16, 19
LankaPay357111Yes16

American Express

Valid length: 15 digits. First digit must be a 3 and second digit must be a 4 or 7. 

Diners Club and Carte Blanche

Valid length: 14 digits. 
First digit must be 3 and second digit must be 0, 6, 8 or 9. The ranges are:
300000 through 305999
309500 through 309599
360000 through 369999
380000 through 399999

Discover

Valid length: 16 digits.
First 6 digits must be in one of the following ranges:
601100 through 601109
601120 through 601149
601174
601177 through 601179
601186 through 601199
644000 through 659999

enRoute

Valid length: 15 digits. First four digits must be 2014 or 2149.

JCB

Valid length: 16 to 19 digits.
First 4 digits must be in the range 3528 through 3589. 

MasterCard

Valid length: 16 digits.
First digit must be 5 and second digit must be in the range 1 through 5 inclusive. The range is 510000 through 559999.
First digit must be 2 and second digit must be in the range 2 through 7 inclusive. The range is 222100 through 272099.

Maestro

Valid length: Up to 19 digits.
First digit must be 5 or 6. The ranges are:
50nnnn
56nnnn through 64nnnn
66nnnn through 69nnnn
Note: The range 60nnnn to 64nnnn is also used by Discover (see above). 

Visa

Valid length: Up to 19 digits. First digit must be a 4. 


Test Card Numbers
Types
5890040000000016      
Master Card (Debit)
5526080000000006
Master Card (Credit)
4766620000000001
Visa (Debit)
4603450000000000
Visa (Credit)
4987490000000002
Visa (Debit)
5311570000000005
Master Card (Credit)
9792020000000001
Troy (Debit)
9792030000000000
Troy (Credit)
5170410000000004
Master Card (Debit)
5400360000000003
Master Card (Credit)
374427000000003
American Express
4475050000000003
Visa (Debit)
5528790000000008
Master Card (Credit)
4059030000000009
Visa (Debit)
5504720000000003
Master Card (Credit)
5892830000000000
Master Card (Debit)
4543590000000006
Visa (Credit)
4910050000000006
Visa (Debit)
4157920000000002
Visa (Credit)
5168880000000002
Master Card (Debit)
5451030000000000
Master Card (Credit)

Source 1Source 2Source 3

VueJs Remove Spaces From Input Value


VueJs Remove Spaces From Input Value

Delete all spaces from input value:

<input type="text" name="card_number" v-model="foo">
<input type="hidden" name="bar" :value="foo.replace(/\s/g, '')">