Skip to content

Instantly share code, notes, and snippets.

View heobay's full-sized avatar

Kiet Tran heobay

  • HBSolution
  • VietNam
View GitHub Profile
@heobay
heobay / animate.css
Created January 19, 2014 14:49
Angular animate css
.slide-reveal.ng-enter {
-webkit-transition:0.5s linear all;
-moz-transition:0.5s linear all;
-o-transition:0.5s linear all;
transition:0.5s linear all;
opacity:0.5;
position:relative;
opacity:0;
top:10px;
.flexslider{
background:none;
border:none;
box-shadow:none;
margin:0px;
}
@heobay
heobay / linux-commands
Last active August 31, 2023 10:43
Common Linux Commands
Linux commands
cat [filename] Display file’s contents to the standard output device (usually your monitor).
cd /directorypath Change to directory.
chmod [options] mode filename Change a file’s permissions.
chown [options] filename Change who owns a file.
clear Clear a command line screen/window for a fresh start.
cp [options] source destination Copy files and directories.
date [options] Display or set the system date and time.
df [options] Display used and available disk space.
@heobay
heobay / Yoman commands
Last active January 3, 2016 07:39
Yoman commands
npm install -g yo
npm install -g grunt-cli
npm install -g generator-webapp
npm install -g generator-angular
### Scaffolding an AngularJS app
yo angular
yo angular:controller myController
@heobay
heobay / check-exist.js
Last active January 2, 2016 13:39
jquery: Check if a element exist
if ($(selector).length>0) {
// Do something
}
@heobay
heobay / ngEnter.js
Created January 8, 2014 02:20 — forked from EpokK/ngEnter.js
app.directive('ngEnter', function() {
return function(scope, element, attrs) {
element.bind("keydown keypress", function(event) {
if(event.which === 13) {
scope.$apply(function(){
scope.$eval(attrs.onEnter);
});
event.preventDefault();
}
SELECT LEFT(CONVERT(VARCHAR, @myDateTime, 120), 10)