Skip to content

Instantly share code, notes, and snippets.

View rgomezcasas's full-sized avatar
☀️
deletin' code

Rafa Gómez rgomezcasas

☀️
deletin' code
View GitHub Profile
@rgomezcasas
rgomezcasas / Lista Aplicaciones Instaladas
Created September 27, 2012 13:58
UBUNTU: Lista de todas las aplicaciones instaladas (Lo crea en el archivo ubuntu-files)
dpkg --get-selections | grep -v deinstall > ubuntu-files
@rgomezcasas
rgomezcasas / Package Control.sublime-settings
Last active October 14, 2015 02:18
List of plugins installed in Sublime Text
{
"installed_packages":
[
"Alignment",
"BracketHighlighter",
"ColorPicker",
"DocBlockr",
"Emmet",
"GitGutter",
"Laravel Blade Highlighter",
@rgomezcasas
rgomezcasas / gist:4292449
Last active October 14, 2015 02:18
My Sublime Text Configuration File
{
"aprosopo_active_bar": true,
"aprosopo_dark_dirty_red": true,
"aprosopo_dark_green": true,
"aprosopo_dirty_bar": true,
"aprosopo_dirty_button": true,
"aprosopo_hide_folder_expand_icon": false,
"aprosopo_hide_open_file_icons": false,
"aprosopo_no_file_icons": false,
"bold_folder_labels": true,
@rgomezcasas
rgomezcasas / gist:5311643
Created April 4, 2013 15:56
My Sublime Key Bindings
[
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
]
@rgomezcasas
rgomezcasas / xmltoarray.php
Last active December 16, 2015 05:28
A simple function to transform from XML to Array in php
<?php
function XMLtoArray($xml) {
$xml = preg_replace('/(<\?xml[^?]+?)utf-16/i', '$1utf-8', $xml);
$xml = simplexml_load_string($xml);
return (array) $xml;
}
@rgomezcasas
rgomezcasas / helpers.php
Created May 17, 2013 15:40
PHP Helpers
<?php
/**
* Print the given value and kill the script.
*
* @param mixed $value
* @return void
*/
function pd($value)
{
@rgomezcasas
rgomezcasas / mixins.scss
Last active December 17, 2015 12:19
Sass mixins
@mixin prefixr($que, $arguments) {
#{$que}: $arguments;
-webkit-#{$que}: $arguments;
-ms-#{$que}: $arguments;
-moz-#{$que}: $arguments;
-o-#{$que}: $arguments;
}
@mixin transition($time) {
@include prefixr(transition, all $time linear);
@rgomezcasas
rgomezcasas / twitter_follow.js
Created July 12, 2013 09:22
Twitter: Only follow who is following you
// Execute in the javascript console
// Ensure that you scroll to the bottom first
/**
* Execute in https://twitter.com/following to unfollow all users
*/
$('.profile-stream .following button').click();
/**
* Execute in https://twitter.com/followers to follow all users
@rgomezcasas
rgomezcasas / filters.php
Last active December 24, 2015 10:49 — forked from garagesocial/filters.php
Minificar salida del HTML en Laravel 4
<?php
App::after(function($request, $response)
{
// Elimina esta condición si quieres probarlo en local
if (App::Environment() == 'production')
{
if ($response instanceof Illuminate\Http\Response)
{
$output = $response->getOriginalContent();
@rgomezcasas
rgomezcasas / casper-helpers.js
Created March 31, 2015 14:49
Casper Helpers
casper.on("page.error", function(msg, trace) {
this.echo("Error: " + msg, "ERROR");
this.echo("file: " + trace[0].file, "WARNING");
this.echo("line: " + trace[0].line, "WARNING");
this.echo("function: " + trace[0]["function"], "WARNING");
});
casper.on('remote.message', function(message) {
this.echo('Remote: ' + message);
});