Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Delph nosajhpled

View GitHub Profile
View CSS - Alt Row Color
tr:nth-child(even){
color:blue;
}
tr:nth-child(odd){
color:red;
}
View Create Aurora User
CREATE USER 'username'@'%' IDENTIFIED BY 'password';
GRANT SELECT ON database.* TO 'username'@'%';
GRANT INSERT ON database.* TO 'username'@'%';
GRANT UPDATE ON database.* TO 'username'@'%';
View gist:2ed785953a35a345531770be69febb6b
Run Tests:
clear;./vendor/bin/phpunit
Create a new test:
php artisan make:test {Class}Test
View BasicVueStructure
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script type="text/javascript">
var formValidation = new Vue({
el:'',
data:{
},
methods:{
methodName: function (){
}
View Laravel Notes
Controller with all resources:
php artisan make:controller {ControllerName} --resource
Controller / Model / Migration
php artisan make:model {ModelName} -crm
Seed
php artisan make:seeder {ModelName}Seeder
Run Seed:
View tabulator_template.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="" content="">
<title>Tabulator Template</title>
View Create Laravel Project.txt
sudo composer create-project --prefer-dist laravel/laravel <Project Name>
Generate Key:
php artisan key:generate
Create MySQL User:
GRANT ALL PRIVILEGES ON {Database}.* TO '{user}'@'localhost' IDENTIFIED BY 'Password123!';
@nosajhpled
nosajhpled / default.html
Last active Jan 9, 2019
Default HTML Code Template
View default.html
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="" content="">
<!-- CSS -->
@nosajhpled
nosajhpled / Convert FoxPro to Microsoft SQL Server
Created Aug 31, 2018
Convert FoxPro to Microsoft SQL Server
View Convert FoxPro to Microsoft SQL Server
The easiest way to convert FoxPro to Microsoft SQL Server is to copy the FoxPro file to a CSV and use the SQL Server Import and Export Wizard.
In FoxPro
use NameOfFile (or ?)
copy to NameOfFile type csv
This will give you a clean CSV with a header line.
@nosajhpled
nosajhpled / Getting CPU information from the command line [Windows]
Created Aug 31, 2018
Getting CPU information from the command line [Windows]
View Getting CPU information from the command line [Windows]
Here is an easy way to get CPU information from the command line:
wmic cpu get /format:list
Below is examples of some of the information provided from the command:
Description
L2 Cache
L3 Cache
Max Clock Speed