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
<div> | |
<p><?=$username?> | |
</div> |
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
1, bootswatch |
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
<!-- begin #page-loader --> | |
<div id="page-loader" class="fade in"><span class="spinner"></span></div> | |
<script> | |
$(document).ready(function(){ | |
$.when($("#page-loader").addClass("hide")).done(function () { | |
$(".page-container").addClass("in") | |
}) | |
}); | |
</script> | |
<!-- end #page-loader --> |
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
path: | |
C:\windows\system32\drivers\etc\hosts | |
add: | |
127.0.0.1 popshop.local | |
path: | |
C:\xampp\apache\conf\extra\httpd-vhosts.conf | |
add: |
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
##CRUD## | |
#create | |
Human.create | |
#read | |
Human.find(2) | |
Human.first | |
Human.last | |
human.name |
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
“Focus on the user and all else will follow.” |
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 | |
$string = file_get_contents("https://www.googleapis.com/customsearch/v1?key=AIzaSyC2seiP3CUr3NK77OzvtzsXO_Q9RyVqogk&cx=011630460259922505622:k84o2c59sea&num=1&alt=json&q=Alice%20and%20Olivia%20brand%20logo&searchType=image"); | |
$json = json_decode($string, true); | |
echo $json['items'][0]['image']['thumbnailLink']; | |
?> |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<canvas></canvas> | |
<script> | |
var canvas = document.querySelector("canvas"), | |
context = canvas.getContext("2d"); | |
var image = new Image; | |
image.src = "math.svg"; |
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
$cd | |
$ls | |
$ls -a | |
$pwd | |
$mkdir | |
$rm | |
$rm -r | |
$php file_name.php |
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
#string | |
str = "str #{placeholder}" | |
str.length | |
str = str + "concatenate" | |
"albert".gsub("al", "ro") #replace | |
str[3] | |
#array | |
arr = ["alb", "ert", 25] | |
arr.size |
OlderNewer