RegExp:
/(.([a-zA-Z]+\(["'][a-zA-Z-]+["']\))){2,}/gTest values:
Obj.prop.methodX("val").methodY("val");
this.get("someClass").addClass("full");| // taken from http://stackoverflow.com/questions/55611/javascript-private-methods | |
| function Restaurant() { | |
| var myPrivateVar; | |
| var private_stuff = function() { // Only visible inside Restaurant() | |
| myPrivateVar = "I can set this here!"; | |
| } | |
| this.use_restroom = function() { // use_restroom is visible to all |
| // Converting JSON To Map With Java 8 Without Dependencies. | |
| // Starting with JDK 8u60+ the built-in Nashorn engine is capable to convert Json content into java.util.Map. | |
| // No external dependencies are required for parsing, | |
| // Origin: http://adam-bien.com/roller/abien/entry/converting_json_to_map_with | |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Paths; | |
| import java.util.Map; | |
| import javax.script.ScriptEngine; |
| docker run hello-world | |
| docker-machine upgrade dev |
| # nmap | |
| PORT STATE SERVICE VERSION | |
| 21/tcp open ftp | |
| 22/tcp open ssh | |
| # iostat | |
| Linux 3.13.0-43-generic 01/10/15 _x86_64_ (4 CPU) | |
| avg-cpu: %user %nice %system %iowait %steal %idle | |
| 0.58 0.00 0.24 5.31 0.00 93.87 |
| var express = require('express'); | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var port = 3005; | |
| var staticDir = "staticFiles" | |
| var app = express(); | |
| app.use(function (req, res, next) { | |
| //NOTE (JNHager): NEVER DO THIS IN A PRODUCTION SYSTEM. STRICTLY FOR TESTING LOCALLY!!!! |
| ### from http://serverfault.com/questions/195611/how-do-i-redirect-subdomains-to-a-different-port-on-the-same-server | |
| NameVirtualHost *:80 | |
| <VirtualHost *> | |
| ServerAdmin me@mydomain.com | |
| ServerName dev.mydomain.com | |
| ProxyPreserveHost On | |
| # setup the proxy |
| def makeRandStr(length = 7, chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJLKMNOPQRSTUVWXYZ0123456789') | |
| str = '' | |
| for num in 1..length | |
| str += chars[rand(0..(chars.length - 1))] | |
| end | |
| return str | |
| end |
| Just my favourite apps: | |
| Allegro | |
| Apollo | |
| Amazon Appstore | |
| Avast Mobile Security | |
| Aviary | |
| CCleaner | |
| Ceneo | |
| Chrome |
| // Decompiled with JetBrains decompiler | |
| // Type: val_ip.Program | |
| // Assembly: val_ip, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | |
| // MVID: 5E7D5EDC-F012-4AF3-A5E5-6610706D35E8 | |
| using System; | |
| using System.IO; | |
| using System.Runtime.InteropServices; | |
| namespace val_ip |