Skip to content

Instantly share code, notes, and snippets.

@anestan
anestan / vim-shortcuts.md
Created October 28, 2022 05:50 — forked from tuxfight3r/vim-shortcuts.md
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)
@anestan
anestan / Function.Array-Group-By.php
Created March 16, 2022 08:09 — forked from mcaskill/Function.Array-Group-By.php
PHP : Groups an array by a given key
<?php
if (!function_exists('array_group_by')) {
/**
* Groups an array by a given key.
*
* Groups an array into arrays by a given key, or set of keys, shared between all array members.
*
* Based on {@author Jake Zatecky}'s {@link https://github.com/jakezatecky/array_group_by array_group_by()} function.
* This variant allows $key to be closures.
@anestan
anestan / resources-web-developers-designers.md
Created January 14, 2022 08:32 — forked from kevinwhoffman/resources-web-developers-designers.md
Resources for Web Developers and Designers

Resources for Web Developers and Designers

This is an incomplete list of resources including courses and individuals who publish content that has helped me grow as a web developer and designer. Many of these resources are WordPress-specific as that is my current area of specialization. This list will grow over time. If you've got something to add, send me a link @kevinwhoffman and I'll check it out!

Course Providers

@anestan
anestan / webdev.md
Created October 10, 2018 07:28 — forked from GoodGuyNick/webdev.md
Web Dev
@anestan
anestan / Sublime-stuffs.txt
Created August 9, 2017 15:43 — forked from vishalbasnet23/Sublime-stuffs.txt
Install PHPCS with WordPress Coding Standard with Sublime Text 3
1. cmd+shift+p
2. Type phpcs and install it
3. Preferences > Package Settings > Php Code Sniffer > User settings
@anestan
anestan / phpcs-sublime.md
Created August 9, 2017 15:34 — forked from GaryJones/notes.md
Add PHPCS + WPCS to Sublime Text 3

Install PHP_CodeSniffer (PHPCS) via git

You can use the .phar for PHPCS, but it's easier to pull the repo down from git to then choose what version to use.

cd ~
mkdir -p code
cd code
git clone https://github.com/squizlabs/PHP_CodeSniffer.git phpcs
@anestan
anestan / laravel-ajax.php
Created August 4, 2017 02:08 — forked from davestewart/laravel-ajax.php
A lightweight example to get Laravel 5 users up to speed with jQuery AJAX
/**
* Laravel / jQuery AJAX code example
* See conversation here: http://laravel.io/forum/04-29-2015-people-asking-about-jquery-ajax
*
* Drop this code into your App/Http/routes.php file, and go to /ajax/view in your browser
* Be sure to bring up the JavaScript console by pressing F12.
*/
// This is your View AJAX route - load this in your browser
Route::get('/ajax/view', function () {
@anestan
anestan / footer.blade.php
Created July 4, 2017 06:13 — forked from janikvonrotz/footer.blade.php
Laravel default templates #Laravel
@anestan
anestan / admin-testimonials.js
Created January 26, 2017 12:18 — forked from tomazzaman/admin-testimonials.js
How to create a testimonial widget with Backbone
var myWidgets = myWidgets || {};
// Model for a single testimonial
myWidgets.Testimonial = Backbone.Model.extend({
defaults: { 'quote': '', 'author': '' }
});
// Single view, responsible for rendering and manipulation of each single testimonial
myWidgets.TestimonialView = Backbone.View.extend( {