start new:
tmux
start new with session name:
tmux new -s myname
| /* | |
| I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace | |
| so it's better encapsulated. Now you can have multiple random number generators | |
| and they won't stomp all over eachother's state. | |
| If you want to use this as a substitute for Math.random(), use the random() | |
| method like so: | |
| var m = new MersenneTwister(); |
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
| $.ajax({ | |
| url: 'MASHAPE-URL', // The URL to the API. You can get this by clicking on "Show CURL example" from an API profile | |
| type: 'POST', // The HTTP Method | |
| data: {}, // Additional parameters here | |
| dataType: 'json', | |
| success: function(data) { alert(JSON.stringify(data)); }, | |
| error: function(err) { alert(err); }, | |
| beforeSend: function(xhr) { | |
| xhr.setRequestHeader("X-Mashape-Authorization", "YOUR-MASHAPE-KEY"); // Enter here your Mashape key | |
| } |
| import json, pprint, subprocess, urllib, urllib2, re, sys | |
| import json as simplejson | |
| import urllib2 | |
| import xml.sax.saxutils | |
| from getpass import getpass | |
| from urllib import urlencode | |
| import time, getopt | |
| #sys.path = [ #Load of stupid path amendments for Dreamhost ] | |
| import java.io.IOException; | |
| import java.util.Properties; | |
| import kafka.server.KafkaConfig; | |
| import kafka.server.KafkaServerStartable; | |
| public class KafkaLocal { | |
| public KafkaServerStartable kafka; | |
| public ZooKeeperLocal zookeeper; |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| sudo ufw allow in on zcctun0 proto any from 10.0.0.0/8 to 100.64.0.1 port 9000 | |
| sudo ufw allow in on zcctun0 proto any from 100.64.0.0/16 to 100.64.0.1 port 9000 | |
| sudo ufw allow in on zcctun0 proto any from 100.64.0.0/16 to 100.64.0.1 port 9010 | |
| sudo ufw allow in on zcctun0 proto udp from 100.64.0.0/16 to 100.64.0.1 |