This file contains hidden or 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
//because of colorpicker object use catch click event, I use onHover event to get the id's | |
$('tr.txtMark td input[type=text]').on('hover', function(){ | |
var sID = $(this).attr('id'); | |
$('#' + sID).colorpicker({ | |
title: "Header Background Colour", | |
dragggable: true, | |
closeOnOutside: false, | |
revert: true, | |
parts: ['header', 'map', 'bar', 'hex', 'preview', 'footer'], |
This file contains hidden or 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
### Few guide using a vim text editor | |
- - - | |
*open vi* | |
`vi | |
*go to command mode* | |
`press Esc | |
*go to editor mode* |
This file contains hidden or 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 evLog = { | |
d: function(param){ | |
var bCheck = $('body').children('#playground').length; | |
if(bCheck == 0){ | |
console.log("playground not found"); | |
var createDiv = document.createElement("div"); | |
createDiv.setAttribute("id", "playground"); | |
document.body.appendChild(createDiv); | |
} |
This file contains hidden or 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
/* | |
Courtesy of addyosmani | |
http://addyosmani.com/resources/essentialjsdesignpatterns/book/#modulepatternjavascript | |
*/ | |
// Counter covers namespace | |
var Counter = (function(){ | |
//count covers private var | |
var count = 0; | |
//count covers private method | |
var privateMethod; |
This file contains hidden or 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
# fix MAMP common issue, myslq wont start but apache is start | |
killall -9 mysqld | |
# check bash type | |
/usr/bin/printenv | |
# node and npm path, write on .bash_profile | |
echo 'export PATH=$PATH:/usr/local/bin' >> $HOME/.bash_profile | |
# uninstall npm package |
This file contains hidden or 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
#print list of global installed libraries | |
npm list -g | |
#write .bash_profile with NODE_PATH (npm root -g) -> point to node_modules | |
echo 'export NODE_PATH="'$(npm root -g)'"' >> ~/.bash_profile && . ~/.bash_profile | |
#write .bash_profile with NODE_PATH GLOBAL | |
echo 'export NODE_PATH="'$(npm bin -g)'"' >> ~/.bash_profile && . ~/.bash_profile |
This file contains hidden or 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
(function () { | |
/* | |
console.log(sum(range(1, 10))); | |
-> 55 | |
console.log(range(5, 2, -1)); | |
-> [5,4,3,2] | |
*/ | |
function range (param1, param2, param3) { | |
/* | |
1. if param1 >= param2 then -param3 else return false |
This file contains hidden or 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
## check and download gradle from gradle-wrapper.properties | |
./gradlew -v | |
## fire a spesific gradle command (you can see the gradle tab on right the right side - default). For instance, assemble command | |
./gradlev assemble |
This file contains hidden or 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
#built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
# Java class files | |
*.class |
This file contains hidden or 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
# pass data from 1 window parent to child window | |
from tkinter import * | |
class trackApp(Frame): | |
def __init__(self, master): | |
Frame.__init__(self, master) |
OlderNewer