Skip to content

Instantly share code, notes, and snippets.

View irineujunior's full-sized avatar
😎
You are not done when it works, you are done when it's right.

Irineu Martins Junior irineujunior

😎
You are not done when it works, you are done when it's right.
View GitHub Profile
@hyl
hyl / emoji-aliases.json
Created July 17, 2015 13:27
JSON with every emoji alias.
{
"people": ["bowtie", "smile", "laughing", "blush", "smiley", "relaxed", "smirk", "heart_eyes", "kissing_heart", "kissing_closed_eyes", "flushed", "relieved", "satisfied", "grin", "wink", "stuck_out_tongue_winking_eye", "stuck_out_tongue_closed_eyes", "grinning", "kissing", "kissing_smiling_eyes", "stuck_out_tongue", "sleeping", "worried", "frowning", "anguished", "open_mouth", "grimacing", "confused", "hushed", "expressionless", "unamused", "sweat_smile", "sweat", "disappointed_relieved", "weary", "pensive", "disappointed", "confounded", "fearful", "cold_sweat", "persevere", "cry", "sob", "joy", "astonished", "scream", "neckbeard", "tired_face", "angry", "rage", "triumph", "sleepy", "yum", "mask", "sunglasses", "dizzy_face", "imp", "smiling_imp", "neutral_face", "no_mouth", "innocent", "alien", "yellow_heart", "blue_heart", "purple_heart", "heart", "green_heart", "broken_heart", "heartbeat", "heartpulse", "two_hearts", "revolving_hearts", "cupid", "sparkling_heart", "sparkles", "star", "star2", "dizzy",
@alexandremcosta
alexandremcosta / universidades.csv
Last active April 14, 2025 19:46
Lista de Todas as Universidades do Brasil (retirado do portal de indicadores do INEP/ENADE)
ACADEMIA DA FORÇA AÉREA AFA SP
ACADEMIA DA POLÍCIA CIVIL DO ESTADO DA BAHIA ACADEPOL BA
ACADEMIA DE POLÍCIA MILITAR DO BARRO BRANCO APMBB SP
ACADEMIA DE POLÍCIA MILITAR DOM JOÃO VI APMDJVI RJ
ACADEMIA DE POLÍCIA MILITAR APM BA
ACADEMIA MILITAR DE AGULHAS NEGRAS AMAN RJ
ANHANGUERA EDUCACIONAL S.A. UNIANHANGUERA RS
ANHANGUERA EDUCACIONAL AESA SP
ASSOCIAÇÃO CATARINENSE DE ENSINO ACE SC
ASSOCIAÇÃO DE ENSINO SUPERIOR DO PIAUÍ AESPI PI
@juliobitencourt
juliobitencourt / StaticController.php
Last active June 5, 2020 16:33
A Laravel controller to serve Static pages. It translates the slug to a view file, but you might override this behavior with yout own methods
<?php
namespace App\Http\Controllers\Web;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class StaticController extends Controller
@petericebear
petericebear / .php_cs
Last active October 3, 2024 21:26
Laravel 5.x php-cs-fixer config file
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
@solancer
solancer / mod_pagespeed .htaccess
Last active December 1, 2024 00:09
mod_pagespeed .htaccess configuration
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
@alfhen
alfhen / homestead_install_elastic_search.sh
Last active September 27, 2019 17:18
Install ElasticSearch on Laravel Homestead
# Login as root
sudo -s
# Update Aptitude
apt-get update
# Install Java
apt-get install openjdk-7-jre-headless -y
# Download and install Elasticsearch Public Signing Key
@hfalucas
hfalucas / [1] main.js
Last active February 22, 2025 17:12
[Vue.js] Authentication and Authorization
/**
* Think of this "main.js" file as your application bootstrap.
*/
import Vue from 'vue'
import Resource from 'vue-resource'
import VueRouter from 'vue-router'
import routes from './routes'
import middleware from './middleware'
@rafaelpatro
rafaelpatro / magento-address-autocomplete.js
Last active September 23, 2024 12:44
Magento Address Auto Fill based on Postcode
/**
* Address Auto Fill based on Postcode
*
* Author:
* Rafael Patro <[email protected]>
*
* Intallation:
* Add a CMS Static Block applying the entire script below.
* Add a Widget to pages with address forms.
*
@ZackStone
ZackStone / slack-invite-all-members-to-a-channel.js
Created April 14, 2017 13:48
Invite all team members to a Slack channel
/*
https://webapps.stackexchange.com/questions/100820/how-do-i-invite-all-team-members-to-a-new-slack-channel#answer-104062
Instructions: Just browse to the appropriate channel and paste
this script (below) into your Chrome/Firefox dev console and hit enter.
Then wait for the script to run until it completes.
It might take time as there is a limit to how many users may be invited at once.
The script will loop until all team members are invited.
*/
var foundAny=false;
function selectAllByLetter(remainingLetters) {
@vielhuber
vielhuber / Model.php
Last active July 11, 2023 16:51
custom relationship in eloquent / eager loading #laravel
<?php
public function foos() {
$relation = $this->hasMany('App\Bar');
return $relation; // default behaviour
// modify the query builder
$relation->where('foo','bar');
return $relation;