Skip to content

Instantly share code, notes, and snippets.

View lilbro1062000's full-sized avatar

Abdoulaye Camara lilbro1062000

View GitHub Profile
<?xml version="1.0"?>
<ruleset name="Zend Standard">
<description>A custom coding standard for cakephp</description>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<rule ref="Zend" />
</ruleset>
@lilbro1062000
lilbro1062000 / phpmd.xml
Last active January 1, 2016 17:09 — forked from johnkary/rules.xml
<?xml version="1.0" ?>
<ruleset name="My-PHPMD"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0
http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
MyRuleset...
</description>
@lilbro1062000
lilbro1062000 / phpunit.xml
Created January 4, 2014 01:34
cakephp phpunit.xml
<phpunit>
<filter>
<!-- Exclude directories for coverrage. -->
<blacklist>
<directory suffix=".php">bin</directory>
<directory suffix=".php">cakephp</directory>
<directory suffix=".php">*/Config/Migration</directory>
<directory suffix=".php">*/Config/Schema</directory>
<directory suffix=".php">*/Console/Templates</directory>
<directory suffix=".php">*/Lib</directory>
#!/bin/bash
#
# Author: mrimp
#
# Description:
# Setup script for AOKP Build Enviroment Ubuntu 13.04
#
# Legal Stuff:
#
# This script is free software; you can redistribute it and/or modify it under
#!/bin/bash
BH=$(which bash)
echo "Currently using " + $BH
echo " "
echo "update apt repos..."
echo " "
sudo apt-get update
@lilbro1062000
lilbro1062000 / Jasmine-node-tests.sublime-build
Created April 24, 2014 16:32
jasmine-node build sublime text
{
"shell_cmd": "jasmine-node tests",
"working_dir": "${project_path:${folder}}"
}
@lilbro1062000
lilbro1062000 / AngularJSGruntTest.sublime-build
Created April 24, 2014 16:32
Angular JS Grunt tests Karma jasmine
{
"shell_cmd": "karma start",
"working_dir": "${project_path:${folder}}"
}
/**
* Description:
* removes white space from text. useful for html values that cannot have spaces
* Usage:
* {{some_text | nospace}}
*/
app.filter('nospace', function () {
return function (value) {
return (!value) ? '' : value.replace(/ /g, '');
module.exports = function (grunt) {
// show elapsed time at the end
require('time-grunt')(grunt);
// load all grunt tasks
require('load-grunt-tasks')(grunt);
//MODIFIED: add require for connect-modewrite
var modRewrite = require('connect-modrewrite');
grunt.initConfig({
@lilbro1062000
lilbro1062000 / gist:929bbf08c184e8a0e0b9
Created March 25, 2016 00:45
my Userscript to clear off some ads stuff on solarmovie
// ==UserScript==
// @name My Fancy New Userscript
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match http://watch.solarmovie.ph/link/play/*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==