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
{ | |
"tracks" : { | |
"href" : "https://api.spotify.com/v1/search?query=artist%3A50+cent+track%3Ain+the+club&offset=0&limit=20&type=track&market=GB", | |
"items" : [ { | |
"album" : { | |
"album_type" : "album", | |
"artists" : [ { | |
"external_urls" : { | |
"spotify" : "https://open.spotify.com/artist/0LyfQWJT6nXafLPZqxe9Of" | |
}, |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title></title> | |
<link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet"> | |
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"></script> |
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> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Open App</title> | |
<!-- | |
URL Params: | |
customSchemeURL: Your custom scheme app | |
storeURL: Your app url at App Store or Google Play |
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
{{ $var }} - Echo content | |
{{ $var or 'default' }} - Echo content with a default value | |
{{{ $var }}} - Echo escaped content | |
{{-- Comment --}} - A Blade comment | |
@extends('layout') - Extends a template with a layout | |
@if(condition) - Starts an if block | |
@else - Starts an else block | |
@elseif(condition) - Start a elseif block | |
@endif - Ends a if block |
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
/** | |
* Returns true if the given object is an element. | |
* @param cElem {object/jQuery} | |
* @returns {boolean} | |
*/ | |
function isDomElement(cElem) | |
// use this for jQuery objects | |
if (cElem && cElem.jquery) { | |
cElem = cElem.get(0); | |
} |
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
# ~/.gitconfig | |
# Add this to your global git configuration file | |
# Change phpstorm to webstorm, if you use that. | |
# Diff and merge tool changes | |
# Run `git difftool <directory/file>...` or `git mergetool <directory/file>...` | |
[merge] | |
tool = phpstorm | |
[diff] | |
tool = phpstorm |
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
"require": { | |
"laravel/framework": "4.2.*", | |
"greggilbert/recaptcha": "dev-master" /*recapcha as 80% of my projects need it*/ | |
}, | |
"require-dev": { | |
"way/generators": "2.*", /* laravel generators */ | |
"fzaninotto/faker": "1.2.*@dev", /*i use it to seed my tables with mock data*/ | |
"barryvdh/laravel-ide-helper": "1.11.*@dev", /* ide helper*/ | |
"doctrine/dbal":"2.4.*", /*used to generate models autocomplete by ide_helper*/ | |
"xethron/migrations-generator": "dev-master" /*Generate migration from a mysql database*/ |
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
#go to the conf folder | |
cd /etc/apache2/sites-available | |
#create the new .conf file | |
sudo vi myapp.com.conf | |
#Add the following content to your .conf file | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName myapp.com |
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
#go into your project folder | |
cd myapp | |
#initialize git | |
git init | |
#check the status | |
git status | |
#Configure Git with your name and email |
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
composer create-project laravel/laravel <folder_name> |
NewerOlder