Skip to content

Instantly share code, notes, and snippets.

View jesraygarciano's full-sized avatar
💬
Be codesistent

Codetinerant jesraygarciano

💬
Be codesistent
View GitHub Profile
@jesraygarciano
jesraygarciano / Vue JS sheet
Created June 14, 2018 03:10
VUE ESSENTIALS CHEAT SHEET
EXPRESSIONS
<div id="app">
<p>I have a {{ product }}</p>
<p>{{ product + 's' }}</p>
<p>{{ isWorking ? 'YES' : 'NO' }}</p>
<p>{{ product.getSalePrice() }}</p>
</div>
DIRECTIVES
@jesraygarciano
jesraygarciano / AWS Functions
Last active June 27, 2018 03:35
AWS Functions
S3
require 'aws-autoloader.php';
use Aws\S3\S3Client;
use Aws\S3\Exception\S3Exception;
Create Bucket
<?php
@jesraygarciano
jesraygarciano / Git tips and shortcuts
Created May 17, 2018 08:01
Git tips and shortcuts
Most used commands are: init, clone, status, log, add, commit, reset, rm, branch, checkout, merge, stash
## -- Initializing a new git repository
$$ git init
## -- Useful git log commands
$$ git log --oneline ## print short sha in one line
$$ git log -3 ## show only first 3 commit
$$ git log --author="John" ## show commits only by this author
@jesraygarciano
jesraygarciano / Visual Studio Code - Extensions
Created May 17, 2018 07:51
Visual studio code extentions
Prettier
Material Theme
Git lens -- Git suercharged
Bracket Pair Colorizer
Beautify
Javascript Standard Style
Javasript (ES6) code snippets
Commands
Access monitor: mysql -u [username] -p; (will prompt for password)
Show all databases: show databases;
Access database: mysql -u [username] -p [database] (will prompt for password)
Create new database: create database [database];
Select database: use [database];