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
| git clone git@example.com | |
| git remote add origin git@example.com | |
| git pull | |
| git remote -v | |
| git push origin master | |
| # create patch file for last 3 commits |
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 defineModule = (function(name, func){ | |
| window.App = App || {}; | |
| App.modules = App.modules || {}; | |
| if (!App.modules[name]) { | |
| App.modules[name] = func; | |
| }else{ | |
| console.log(name+" module exist."); | |
| }; | |
| }); |
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
| import flash.events.Event; | |
| this.addEventListener(Event.ENTER_FRAME, _oef ); | |
| var f:Number = 0; | |
| function _oef(e:Event):void { | |
| if(this.loaderInfo.parameters.call) | |
| { | |
| f = Number(this.loaderInfo.parameters.fm); | |
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
| getRoute({"fname":"Sagar", "lname":"Panda"}); |
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
| Design Pattern:- It's a re-usable solution to common types of problem. | |
| 1. Creational Pattern | |
| Factory, Builder, Prototype, Singleton | |
| 2. Structural pattern | |
| Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy | |
| 3. Behavioral Pattern | |
| Command, Iterator, Mediator, Observer, Strategy |
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
| documentation | |
| http://wiki.swftools.org/wiki/Main_Page | |
| swfc | |
| example: http://wiki.swftools.org/wiki/Swfc_Code_Snippets | |
| ref: http://www.herongyang.com/Flash/SWFC-Script-Example-circle.html | |
| as3compile | |
| ref: http://www.herongyang.com/Flash/AS3Compile-First-ActionScript-3-Example.html |
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
| http://1stdev.com/tremendum-transcoder/articles/seeking-videos-beyond-the-buffer-line/ | |
| http://h264.code-shop.com/trac/wiki |
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
| #Required Packages: | |
| $ sudo apt-get install git | |
| $ sudo apt-get install curl | |
| #Then run below to install nvm | |
| $ curl https://raw.github.com/creationix/nvm/master/install.sh | sh | |
| #need nvm to be automatically sourced upon login, so either add the following line to your | |
| #~/.bashrc or ~/.profile file. | |
| [[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh |
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
| Front End | |
| --------- | |
| var formData = new FormData(); | |
| formData.append("name", "Groucho"); | |
| var xhr = new XMLHttpRequest(); | |
| //xhr = new XDomainRequest();// for IE | |
| xhr.open("POST", "http://115.99.16.3/html/demo/data_json.php"); | |
| xhr.send(formData); | |
| xhr.onload = function(){console.log(xhr.response)} |
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
| #!/bin/sh | |
| PublishMyIP(){ | |
| extIp="$(curl ifconfig.me)" #get external ip | |
| curl http://localhost/setmyip.php?ip=$extIp | |
| echo "$extIp" | |
| } | |
| sleep 30s | |
| PublishMyIP | |
| sleep 1m | |
| PublishMyIP |
OlderNewer