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
| $(document).ready(function(){ | |
| $(".blog-posts").appendTo(".xc"); | |
| var nsect = $(".post-body").html().split("==NP==") | |
| $("<div class='npost-body></div>").appendTo(".post-header") | |
| for(i in nsect){ | |
| $("<section></section>").html(nsect[i]).appendTo("npost-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
| body{ | |
| margin: 2em auto; | |
| } | |
| .box{ | |
| background: whitesmoke; | |
| margin-bottom: 10px; | |
| } |
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($){ | |
| $.fn.rollerUp = function() { | |
| var el = $(this)[0]; | |
| var ch = $(el).children()[0]; | |
| $(ch).animate({height:'0px', opacity: 0},500,function(){ | |
| $(this).remove(); | |
| setTimeout(function(){ | |
| $(ch).attr("style",""); | |
| $(el).append(ch); | |
| $(el).rollerUp(); |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| ## | |
| ## ca-bundle.crt -- Bundle of CA Root Certificates | |
| ## | |
| ## Certificate data from Mozilla as of: Tue Jan 28 09:38:07 2014 | |
| ## | |
| ## This is a bundle of X.509 certificates of public Certificate Authorities | |
| ## (CA). These were automatically extracted from Mozilla's root certificates | |
| ## file (certdata.txt). This file can be found in the mozilla source tree: | |
| ## http://mxr.mozilla.org/mozilla-release/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1 | |
| ## |
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 args = process.argv.slice(2); | |
| if(args.length == 0){ | |
| console.log('port required') | |
| process.exit(0) | |
| } | |
| var port = parseInt(args[0]); | |
| var net = require('net'); |
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 mysql = require('mysql'); | |
| var connection = mysql.createConnection( | |
| { | |
| host : 'localhost', | |
| user : 'root', | |
| password : '', | |
| database : 'apps', | |
| multipleStatements: 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
| 127.0.0.1 localhost.io | |
| 127.0.0.1 www.localhost.io | |
| 127.0.0.1 www1.localhost.io | |
| 127.0.0.1 www2.localhost.io | |
| 127.0.0.1 nodejs.localhost.io |
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
| # This file describes the network interfaces available on your system | |
| # and how to activate them. For more information, see interfaces(5). | |
| # The loopback network interface | |
| auto lo | |
| iface lo inet loopback | |
| # The primary network interface | |
| auto virbr0 | |
| iface virbr0 inet static |
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
| Class<?> c = Class.forName("android.os.SystemProperties"); | |
| Method get = c.getMethod("get", String.class, String.class); | |
| String serialNumber = (String) get.invoke(c, "sys.serialnumber", "Error"); | |
| if(serialNumber.equals("Error")) { | |
| serialNumber = (String) get.invoke(c, "ril.serialnumber", "Error"); | |
| } |