This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias.lol=log --graph --decorate --pretty=oneline --abbrev-commit | |
alias.lola=log --graph --decorate --pretty=oneline --abbrev-commit --all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace app\models; | |
class A extends \lithium\data\Model | |
{ | |
protected $_meta = array( | |
'source' => 'a', | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OH MY FN GOD! This took for ever so I will memorialize my learning | |
experience. GOAL: I wanted the element that would display an input form | |
for Customers to be able to render its form fields dynamically. In lieu | |
of writing some whole new Form object I made some observations and came | |
to a compromise. First the observations: 1) Mongo based Models do not | |
have a schema by default. You have a black magic option to use a | |
callback in the connection definition to dynamically load the schema, | |
but that means you actually have to store the schema in mongo for each | |
mongo based Model. 2) All li3 objects have an __init method ( even | |
static ones where its static) in which you can do constructor type |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteLog /var/log/apache2/rewrite.log | |
RewriteLogLevel 9 | |
RewriteCond %{HTTP_HOST} ^(?:www)?(?:\.)?(.+)$ | |
RewriteCond /var/www/%1/pub -d | |
RewriteRule ^/?(.*)$ /var/www/%1/pub/$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fuel/ | |
===== | |
Directories: 75 | |
Files: 303 | |
Lines of Code (LOC): 60989 | |
Cyclomatic Complexity / Lines of Code: 0.15 | |
Comment Lines of Code (CLOC): 23831 | |
Non-Comment Lines of Code (NCLOC): 37158 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
import unittest | |
import datetime | |
import lxml.html | |
from xml.etree import ElementTree | |
class StripTest(unittest.TestCase): | |
def setUp ( self ): | |
self.base_url = 'http://dilbert.com/' |