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
/* | |
* $scope.test = 'hello world'; | |
* $scope.content = '<div>{{test | uppercase}}</div>'; | |
* | |
* <div compile-html="content"></div> | |
*/ | |
angular.module('directives').directive('compileHtml', function ($compile) { | |
return function(scope, element, attr) { | |
var unregister = scope.$watch(attr.compileHtml, function (value) { |
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
find . -type f -name "*.php" | while read file; do sed -i -e '/\/\*/,/*\//d; /^[[:space:]]*\/\//d; /^$/d;' $file;done |
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
#!/usr/bin/php | |
<?php | |
showMessage( "MySql2Sqlite v1.0" ); | |
showMessage( "by Daniele Ugoletti" ); | |
showMessage( "-------------------" ); | |
// check the arguments | |
if ( $argc < 5) | |
{ | |
showMessageAndDie( "Usage: ".$argv[ 0 ]." <mysql_host> <mysql_username> <mysql_password> <dbName> [<outSqliteFile] [useUTF8 true|false]" ); |