Skip to content

Instantly share code, notes, and snippets.

☕️
Will code for coffee

Salis Braimah msbrime

☕️
Will code for coffee
Block or report user

Report or block msbrime

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
@drakakisgeo
drakakisgeo / gist:3bba2a2600b4c554f836
Created May 7, 2015
Auto trim all input [Laravel 5]
View gist:3bba2a2600b4c554f836
// Step 1. Create this class in the middleware folder.
<?php namespace App\Http\Middleware;
use Closure;
class BeforeAutoTrimmer {
/**
* Handle an incoming request.
@fomightez
fomightez / remove blank lines regex.md
Last active Jan 16, 2020
remove all blank lines using regular expressions
@thomasfr
thomasfr / Git push deployment in 7 easy steps.md
Last active Jan 20, 2020
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
View Git push deployment in 7 easy steps.md
@shamansir
shamansir / jasmine.teamcity_reporter.js
Created Aug 28, 2012
All you need to run Jasmine Tests with Phantom at TeamCity
View jasmine.teamcity_reporter.js
/* source: https://github.com/larrymyers/jasmine-reporters */
/* The MIT License
Copyright (c) 2010 Larry Myers
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@jrivero
jrivero / csv_splitter.py
Created Jul 15, 2011 — forked from palewire/csv_splitter.py
A Python CSV splitter
View csv_splitter.py
import os
def split(filehandler, delimiter=',', row_limit=10000,
output_name_template='output_%s.csv', output_path='.', keep_headers=True):
"""
Splits a CSV file into multiple pieces.
A quick bastardization of the Python CSV library.
Arguments:
You can’t perform that action at this time.