This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>SyntaxHighlighter</title> | |
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js"></script> | |
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js"></script> | |
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js"></script> | |
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPHP.js"></script> |
This file contains hidden or 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 | |
function readable_pass() { | |
$vowels = 'aeiou'; | |
$consonants = 'bcdfghjklmnpqrstvwxyz'; | |
$result = null; | |
for($i = 0; $i < 10; $i++) { | |
if($i % 2) |
- Go for women you perceive to be “out of your league.” You’ll surprise yourself.
- Never have sex with anyone that doesn’t want it as much as you.
- Never hit anyone unless they are an immediate threat.
- Every hat should serve a purpose.
- Never take her to the movies on the first date.
- Learn to wet shave.
- Nothing looks more badass than a well-tailored suit.
- Shave with the grain on the the first go-around.
- Always look a person in the eye when you talk to them.
- Buy a plunger before you need a plunger.
First install Composer, then:
$ composer create-project laravel/laravel <project-name>
After that we can start a webserver, and test the default index page:
- favicon.ico: 32x32 @ iConvert Icons
- iOS icons: 57x57, 72x72, 76x76, 114x114, 120x120, 144x144, 152x152 (apple-touch-icon-precomposed.png)
- Facebook images: 1024x1024, 16x16, 155x100, 800x150, 180x115, 394x150, 1200x630
- Twitter images: 73x73, 1200x630
- Email designs has to have 600px wide
- h1, h2, h3
- title (max: 60 chars)
This file contains hidden or 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
function dec2bin(number) { | |
return number.toString(2); | |
} | |
function bin2dec(number) { | |
return parseInt(number, 2); | |
} | |
function dec2hex(number) { | |
return number.toString(16); |
This file contains hidden or 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 | |
ini_set("default_socket_timeout", "05"); | |
set_time_limit(5); | |
$f = fopen("http://github.com", "r"); | |
$r = fread($f, 1000); | |
fclose($f); | |
if (strlen($r) > 1) { |