Skip to content

Instantly share code, notes, and snippets.

View poloey's full-sized avatar

Lict class gist poloey

View GitHub Profile
@poloey
poloey / .zshrc
Created December 15, 2017 10:49
zshrc
# If you come from bash you might have to change your $PATH.
#export PATH=$HOME/bin:$HOME/.config/composer/vendor/bin/:/usr/local/bin:$PATH
export PATH=$HOME/.config/composer/vendor/bin/:/opt/lampp/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/polo/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@poloey
poloey / bootstrapspacing.txt
Created December 4, 2017 17:10
bootstrap spacing in sass using for and each loop
/*
only sides
*/
$sides: (top, bottom, left, right);
@for $i from 1 through 8 {
@each $side in $sides {
.m#{str_slice($side, 0, 1)}-#{$i} {
margin-#{$side}: #{$i / 2}em ;
}
.p#{str_slice($side, 0, 1)}-#{$i} {
@poloey
poloey / data_from_2_table.txt
Created November 29, 2017 22:59
data from 2 table
select people.name as name, city.name as city from people inner
join city where people.id = city.person_id;
@poloey
poloey / ram_in_ubunutu.txt
Created November 29, 2017 07:35
ram_in_ubunutu using command
sudo lshw -short -C memory
@poloey
poloey / laravel_d_h.md
Last active January 8, 2018 23:47
ldh

deploying laravel in heroku

normal deploy

removing .env from .gitignore file

# to write Procfile
echo web: vendor/bin/heroku-php-apache2 public/ > Procfile
# to create heroku project
heroku create
# to set heroku app config
heroku config:set APP_KEY=$(php artisan --no-ansi key:generate --show)
@poloey
poloey / rules.html
Created November 13, 2017 07:52
rules of exam
<!doctype html>
<html lang="en">
<head>
<title>Hello, world!</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
@poloey
poloey / mvc.php
Last active November 13, 2017 09:23
to create a basic boilerplate code using command line. anyone can create model, view, controller using this tool
<?php
/**
* to create mvc structure
* @return [void] [it will create whole mvc structure]
*/
function create_mvc_structure () {
if (! file_exists('core')) {
mkdir('core');
}