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
| sudo /usr/sbin/apachectl restart |
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
| ssh-keygen -lf ~/.ssh/id_rsa.pub |
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
| :g/pattern/s/old/new/g | |
| or | |
| :g/pattern/s//new/g |
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
| Object.getOwnPropertyNames(Function).sort(); //returns ["arguments", "caller", "length", "name", "prototype"] | |
| Object.getOwnPropertyNames(Function.prototype).sort(); //returns ["apply", "arguments", "bind", "call", "caller", "constructor", "isGenerator", "length", "name", "toSource", "toString", "wtbind"] | |
| var x = {}; | |
| x.foo = "foo"; | |
| x.bar = "bar"; | |
| Object.getOwnPropertyNames(x); //returns ["foo", "bar"] |
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 o = {}; | |
| o.prop = "here i is"; | |
| o.hasOwnProperty("prop"); //true | |
| var z = {x:"x", y:"y"}; | |
| z.hasOwnProperty("x"); //true |
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
| svn propset -r ${rev#} --revprop svn:log "Change current log entry to this one" |
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
| svn diff -r REVNUM:HEAD --summarize |
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
| window.onload = function() { | |
| //create DocumentFragment | |
| var documentFragment = document.createDocumentFragment(); | |
| var list = document.getElementById( 'list' ); //<ul id="list"></ul> | |
| var item = null; | |
| //suppose this json is returned from ajax call | |
| var ajaxResponse = [ | |
| { 'name' : 'Haiku' }, |
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-us"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>HTML5 Multiple File Upload</title> | |
| <link rel="stylesheet" href="s.css" media="screen"> | |
| <style media="screen"></style> | |
| </head> | |
| <body> | |
| <form action="processor.php" method="post" enctype="multipart/form-data"> |
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://github.com/ceme/bash_scripts.git |
OlderNewer