Skip to content

Instantly share code, notes, and snippets.

View lightshire's full-sized avatar

Gian Crescini Santillan lightshire

View GitHub Profile
file_uploads = On
memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 600
version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
{
"images": [
{
"imageName": "example",
"fileName": "slide_1.png",
"fileNameTablet": "slide_1.tablet.png",
"description": "example description"
},
{
"imageName": "example 2",
@lightshire
lightshire / gist:ff68bb2bac283a37c837
Created July 20, 2015 18:08
Possible Registration API
{
"user": "[email protected]",
"key": "$%^&*()",
"secret": "RTYUIOPDG1234567",
"meta": {
"some-meta": "you will need"
}
}
<?php
echo convertToRoman(425);
function convertToRoman($number)
{
$cases = [
"1" => "I",
@lightshire
lightshire / gist:c69e6a08ee0233ddd3c8
Created November 30, 2014 14:21
How to Push / Pull Git
PULLING DATA
-git pull origin master
PUSHING DATA
-git pull origin master //always pull first
-git add .
-git commit -a -m "<add viable message>"
-git push
@lightshire
lightshire / gist:78b9b387e4488390df59
Created July 15, 2014 21:23
An additional helper on creating API-centric applications on laravel 4
<?php namespace Cad\System\Library;
use Sourcescript\LaravelDependencyInjector\Interfaces\DependencyInterface;
/**
* Best used w/ Fractal and LaravelDependenctInterface
*/
class Masonry
{
@lightshire
lightshire / gist:b84598827b68eb829c06
Created July 9, 2014 00:23
Laravel Basic Arsenal
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.2.*",
"jenssegers/mongodb": "*",
"cartalyst/sentry": "2.1.*",
"jenssegers/mongodb-sentry": "*",
<?php
class Me extends Eloquent
{
public function heart()
{
$this->belongsTo('You');
}
}
$you = You::find(1);
@lightshire
lightshire / gist:10392405
Created April 10, 2014 15:11
Gravity Forms CSS Built With LESS
.gform_wrapper ul {
padding-left: 0;
list-style: none; }
.gform_wrapper li {
margin-bottom: 15px; }
.gform_wrapper form {
margin-bottom: 0; }