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
| #!/usr/bin/env node | |
| var readline = require('readline'), | |
| crypto = require("crypto"), | |
| fs = require("fs"); | |
| var rl = readline.createInterface(process.stdin, process.stdout), | |
| prefix = 'PasswordMgr>', | |
| _fileName, | |
| _outStream, | |
| _encKey, |
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
| spool awr_all.sql | |
| set pages 0 | |
| select | |
| 'define report_type=html' || chr(10) || | |
| 'define num_days = 1' || chr(10) || | |
| 'define begin_snap=' || SNAP_ID || chr(10) || | |
| 'define end_snap=' || (SNAP_ID + 1)|| chr(10) || | |
| 'define report_name=' || SNAP_ID || '_' || (SNAP_ID + 1) || '.html' || | |
| chr(10) || | |
| '@?/rdbms/admin/awrrpt.sql' || chr(10) |
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
| console.log("------built in function 'typeof'-----"); | |
| console.log("typeof 'string' => ",typeof "string"); //string | |
| console.log("typeof true => ",typeof true); //boolean | |
| console.log("typeof 1 => ",typeof 1); //number | |
| console.log("typeof null => ",typeof null); //object | |
| console.log("typeof NaN => ",typeof NaN); //number | |
| console.log("typeof Infinity => ",typeof Infinity); //Number | |
| console.log("typeof undefined => ",typeof undefined); //undefined | |
| console.log("typeof new Object() => ",typeof new Object()); //object | |
| console.log("typeof new Array => ",typeof new Array()); //object |
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
| find /path/to/Project -type d -name .git -prune -o -name "*" -print | xargs grep "some regexp" >> result.txt |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Fixed Footer</title> | |
| <meta name="description" content="fixed footer sample"> | |
| <link href="//cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.min.css"> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Fixed Footer</title> | |
| <meta name="description" content="fixed footer sample"> | |
| <link href="//cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.min.css"> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> |
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 LocalStorage = { | |
| setItemSafety:function(key,val){ | |
| try{ | |
| window.localStorage.setItem(key,val); | |
| }catch(err){ | |
| window.localStorage.clear(); | |
| window.localStorage.setItem(key,val); | |
| } | |
| } | |
| }; |
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 App = {}; | |
| App.enableSmoothScroll = function(){ | |
| var lastScrollY= 0, | |
| isScrolling = false, | |
| targetAnc, | |
| startTouch = {}, | |
| endTouch = {}; | |
| function saveCurrentPos(e){ | |
| lastScrollY = window.scrollY; |
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 $canvas = $('canvas'); | |
| Ticker.useRAF = true; | |
| Ticker.setFPS(30); | |
| Ticker.addEventListener('tick',function(){ | |
| var clone = $.extend(true,{},stage.children); | |
| $canvas.hide(); | |
| stage.removeAllChildren(); | |
| stage.update(); | |
| for (var key in clone){ | |
| stage.addChild(clone[key]); |
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
| // append this element into last of body contents | |
| // <div id="buffer" style="heigh:3000px;visibility:hidden;"></div> | |
| App = {}; | |
| App.stopOverflow = function(){ | |
| const scrollStopper = 960, | |
| scrollBack = 1060, | |
| duration = 400; | |
| var lastScrollY = 0, | |
| startTouch = {}, |