Skip to content

Instantly share code, notes, and snippets.

Mimo funyx

Block or report user

Report or block funyx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View API.php
<?php
namespace app;
use \atk4\core\Exception;
use \atk4\core\InitializerTrait;
use \atk4\core\HookTrait;
use \atk4\core\DynamicMethodTrait;
use \atk4\core\ContainerTrait;
use \atk4\core\FactoryTrait;
@funyx
funyx / composer.json
Created Feb 11, 2019 — forked from mfurlend/composer.json
composer require git repository
View composer.json
{
"name": "my_vendor_name/my_package",
"description": "My Package Description",
"license": "GPL-3.0",
"autoload": {
"classmap": [ // search these directories for classes
"lib/"
]
},
"repositories": {
@funyx
funyx / .notes.md
Last active Dec 18, 2018
Implementation of ContainsOne (merging models)
View .notes.md

#Notes

  • uses array spawn to access protected properties - their_field, our_field
  • reference::model type Closure not implemented
View Branch.php
<?php
namespace forest\Model;
class Branch extends \forest\Model
{
public $table = 'branch';
public $title_field = 'branch_name';
public $caption = 'Branch';
@funyx
funyx / Update-branch.md
Created Oct 11, 2018 — forked from santisbon/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.
View Update-branch.md

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

@funyx
funyx / Update-branch.md
Created Oct 11, 2018 — forked from santisbon/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.
View Update-branch.md

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

View .stylelintrc
{
"rules": {
"at-rule-empty-line-before": "never",
"at-rule-no-vendor-prefix": true,
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always",
"block-closing-brace-space-after": "always-single-line",
"block-closing-brace-space-before": "always-single-line",
"block-no-empty": true,
"block-opening-brace-newline-after": "always",
View nginx_codeigniter_virtualhost.nginxconf
server {
listen [port];
server_name [web url];
access_log [access_log_location];
error_log [error_log_location];
root [where_to_serve from];
index index.html index.php;
# If file is an asset, set expires and break
@funyx
funyx / sails git stage porduction
Last active May 23, 2016
sails app production stage (Ubuntu 14+)
View sails git stage porduction
Follow the instructions
@funyx
funyx / From Scratch
Created Nov 8, 2015
sails app production stage (Ubuntu 14+)
View From Scratch
$ locale //output must not have empty records
// TODO:
// Check that you have the locales package installed
dpkg -l locales
You can’t perform that action at this time.