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 | |
# MantisBT - A PHP based bugtracking system | |
# MantisBT is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 2 of the License, or | |
# (at your option) any later version. | |
# | |
# MantisBT is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
var app = angular.module('app', []); | |
app.controller('MainCtrl', function ($scope) { | |
// $scope.images = images; | |
$scope.images = JSON.parse(images_str); | |
// $scope.images = images; | |
}); |
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 // print_p($t_list_attachments);?> | |
<div ng-app="myCarouselApp" class="show-grid"> | |
<div ng-controller="CarouselCtrl" > | |
<?php echo '<div class="hidden no-print" id="image_list">'. json_encode($t_list_attachments).'</div>';?> | |
<div> | |
<uib-carousel active="active" interval="myInterval" no-wrap="noWrapSlides" class="bg-danger"> | |
<uib-slide ng-repeat="slide in slides track by slide.id" index="slide.id" class="bg-warning"> | |
<img ng-src="{{slide.image}}" style="margin:auto;"> | |
<div class="carousel-caption"> | |
<h4 class="text-success">Slide {{slide.id}}</h4> |
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
// import modules | |
var express = require('express'); | |
var mysql = require('mysql'); | |
var app = express(); | |
// implement connectionPool | |
var connection = mysql.createPool({ | |
// properties ... | |
connectionLimit: 90, // only 90 queries at a time | |
host:'localhost', |
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
# OS | |
# =========== | |
.DS_Store | |
ehthumbs.db | |
Icon? | |
Thumbs.db | |
# TERMINAL, TERMINUS | |
# =========== | |
*.stackdump |
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
<keymap version="1" name="Default_some_sublime" parent="$default"> | |
<action id="ActivateDBBrowserToolWindow"> | |
<keyboard-shortcut first-keystroke="alt 8" /> | |
</action> | |
<action id="CheckinProject"> | |
<keyboard-shortcut first-keystroke="alt p" /> | |
</action> | |
<action id="CloseContent"> | |
<keyboard-shortcut first-keystroke="ctrl f4" /> | |
<keyboard-shortcut first-keystroke="ctrl w" /> |
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
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"> |
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
Deleting last commit | |
$ git reset HEAD^ --hard | |
$ git push -f origin master | |
$ git cherry-pick <rev-hash> | |
# Proceed with git push if shell message seems fine, Otherwise do git commit to ascertain if there are changes in files | |
# and resolve with git add, rm. | |
$ git commit | |
$ git push -f origin <branch|master> |
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
/* | |
var productCategoryRouteConf = { | |
app: '', | |
routeTable: [], | |
// later all we add these | |
init : function(){}, | |
addRoutes: function(){} | |
} | |
*/ |
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
Warning: a promise was created in a handler but was not returned from it | |
at Model.findAll (C:\Users\PhucTran\seanjs\node_modules\sequelize\lib\model.js:1347:18) | |
at Model.findOne (C:\Users\PhucTran\seanjs\node_modules\sequelize\lib\model.js:1519:34) | |
at exports.userByID (C:\Users\PhucTran\seanjs\modules\users\server\controllers\users\user.authorization.server.controller.js:20:8) | |
at paramCallback (C:\Users\PhucTran\seanjs\node_modules\express\lib\router\index.js:404:7) | |
at null.<anonymous> (C:\Users\PhucTran\seanjs\modules\users\server\controllers\admin.server.controller.js:140:7) | |
at processImmediate [as _immediateCallback] (timers.js:383:17) | |
From previous event: | |
at Promise.then (C:\Users\PhucTran\seanjs\node_modules\sequelize\lib\promise.js:21:17) | |
at exports.userByID (C:\Users\PhucTran\seanjs\modules\users\server\controllers\admin.server.controller.js:121:21) |
OlderNewer