Skip to content

Instantly share code, notes, and snippets.

@BobNisco
BobNisco / controller.js
Last active February 27, 2023 15:43
onLongPress AngularJS Directive - Great for mobile!
// Somewhere in your controllers for this given example
// Example functions
$scope.itemOnLongPress = function(id) {
console.log('Long press');
}
$scope.itemOnTouchEnd = function(id) {
console.log('Touch end');
}
@pahud
pahud / resize.md
Last active November 13, 2020 04:23
resize Cloud9 root volume size
  • resize the EBS volume size from EC2 console(e.g. 8GB to 20GB)
  • sudo growpart /dev/xvda 1
  • sudo resize2fs /dev/xvda1 or sudo resize2fs /dev/nvme0n1p1