Skip to content

Instantly share code, notes, and snippets.

Avatar

Xuân-Lợi Vũ iamloivx

View GitHub Profile
@gbuckingham89
gbuckingham89 / AuthServiceProvider.php
Last active Aug 25, 2020
Blog: Laravel Authentication Customer User Provider Demo
View AuthServiceProvider.php
<?php
namespace App\Authentication;
use Auth;
use App\Authentication\UserProvider;
use Illuminate\Support\ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
@briandk
briandk / pasteUsingSepAndCollapseInR.R
Created Nov 27, 2014
Understanding `sep` and `collapse` in R using `paste()
View pasteUsingSepAndCollapseInR.R
# The difference between the `sep` and `collapse` arguments
# in paste can be thought of like this:
#
# paste can accept multiple *vectors* as input, and will
# concatenate the ith entries of each vector pairwise
# (or tuplewise), if it can.
#
# When you pass paste multiple vectors, sep defines what
# separates the entries in those tuple-wise concatenations.
#
@morrelinko
morrelinko / m2cache.py
Created May 6, 2014
Copy gradle store of libraries into .m2 local cache
View m2cache.py
import os
import shutil
gradle_cache_dir = 'C:\\Users\\morrelinko\\.gradle\\caches\\modules-2\\files-2.1'
maven_cache_dir = 'C:\\Users\\morrelinko\\.m2\\repository2'
"""
Build a dictionary of java libraries
"""
packages = {}
@pcn
pcn / logback.conf
Created May 24, 2012
trying for a logstash conf file that works with java's logback logger
View logback.conf
input {
# file {
# path => ["/var/log/knewton/*/*.log"]
# type => "knewton_logback"
# }
stdin {
type => "knewton_logback"
}
}
You can’t perform that action at this time.