This file contains 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
<snippet> | |
<content><![CDATA[ | |
describe('${1:SuiteName}', function() { | |
var scope, \$httpBackend, initController; | |
beforeEach(function() { | |
module('${2:ModuleName}', function(\$provide){ | |
}); |
This file contains 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
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
This file contains 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 | |
/** | |
* Usage: <code>CharsetConversion::CP850toUTF8('your_string');</code> | |
* | |
* @author Pedro Sanção <pedro at sancao do co> | |
* @license MIT Licence | |
*/ | |
class CharsetConversion { |
This file contains 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
/** | |
* Conditional control structure for ui.router states | |
* | |
* usage in js: | |
* angular.module('myModuel',['ui.router','ui-sref-if') ...... | |
* | |
* usage in view: | |
* <a ui-sref=".nextstate" ui-sref-if="!myForm.$invalid">Next State</a> | |
* | |
* sass: |