Skip to content

Instantly share code, notes, and snippets.

View michaeljymsgutierrez's full-sized avatar
:octocat:
I'm just a developer for fun ⌨️

Chael Gutierrez michaeljymsgutierrez

:octocat:
I'm just a developer for fun ⌨️
View GitHub Profile
/*!
* HTML5 export buttons for Buttons and DataTables.
* 2015 SpryMedia Ltd - datatables.net/license
*
* FileSaver.js (2015-05-07.2) - MIT license
* Copyright © 2015 Eli Grey - http://eligrey.com
*/
(function(factory) {
if (typeof define === "function" && define.amd) {
@michaeljymsgutierrez
michaeljymsgutierrez / DEV-ENV-Installation.txt
Last active July 17, 2017 03:49
IONIC-DEV_ENV_INSTALLATION
# JAVA HOME
export JAVA_HOME=/home/vielsoft-dev-6/jdk1.8.0_91/
export PATH=$JAVA_HOME/bin:$PATH
# ANDROID HOME
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
source ~/.bashrc
@michaeljymsgutierrez
michaeljymsgutierrez / buttons.print.js
Last active July 9, 2018 07:19
buttons.print.js Configurable Library Datatables.net
/*!
* Print button for Buttons and DataTables.
* 2015 SpryMedia Ltd - datatables.net/license
*/
(function(factory) {
if (typeof define === "function" && define.amd) {
// AMD
define(["jquery", "datatables.net", "datatables.net-buttons"], function($) {
return factory($, window, document);
@michaeljymsgutierrez
michaeljymsgutierrez / GIT.md
Last active March 25, 2017 02:57
GIT Commands
  • git status
    • checked if files are modified
    • checked if there are untracked files
    • Example: git status
  • git add filename_and_extenstion
    • add files to commit to push in repo
    • include directory if necessary
    • Example:
      • after git status you see "modified: profiles/bms/modules/bms/angularjs_bms/js/controllers.js"
  • git add profiles/bms/modules/bms/angularjs_bms/js/controllers.js
@michaeljymsgutierrez
michaeljymsgutierrez / custom-directive.js
Created March 20, 2017 04:55
Update ng-model using custom-directive
.directive('noNegativeValue',function(){
//Custom Directive for checking negative value
return {
restrict: 'A',
require: '?ngModel',
link: function(scope, element , attrs, ngModel){
scope.$watch(attrs.ngModel, function(val){
if(val < 0){
ngModel.$setViewValue('0');
db = window.openDatabase("dbname.db", "1.0", "Cordova Demo", 200000);