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(); |
#!/bin/sh | |
# | |
# Starts a multiplexed terminal session with tmux running monitoring software. | |
# Requires dstat, htop and grc. The apache configuration for grc can be found | |
# here: https://gist.github.com/1885569 | |
# | |
# My .tmux.conf is here instead: https://gist.github.com/1886016#file_3_tmux.conf | |
# | |
# tmux 1.7 or later recommended. | |
# |
from datetime import datetime | |
from sqlalchemy import Column, Integer, DateTime, ForeignKey | |
from sqlalchemy.orm import relationship | |
from sqlalchemy.ext.declarative import declared_attr | |
from flask_security import current_user | |
class AuditMixin(object): | |
created_at = Column(DateTime, default=datetime.now) | |
updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now) |
# -*- coding: utf-8 -*- | |
__author__ = 'klb3713' | |
import threading, time, httplib | |
HOST = "127.0.0.1"; #主机地址 例如192.168.1.101 | |
PORT = 8001 #端口 | |
URI = "/api/huohuaId2Url" #相对地址,加参数防止缓存,否则可能会返回304 | |
TOTAL = 0 #总数 | |
SUCC = 0 #响应成功数 | |
FAIL = 0 #响应失败数 |
Go through the new issues and try to reproduce them. It’s important to get additional info, logs, and test if an issue occurs on different platforms. That helps us identify the source of the problem.
<?php | |
class BlogController extends Controller | |
{ | |
/** | |
* Posts | |
* | |
* @return void | |
*/ | |
public function showPosts() |
package com.comphenix.example; | |
import java.util.UUID; | |
import org.bukkit.inventory.ItemStack; | |
import com.comphenix.example.Attributes.Attribute; | |
import com.comphenix.example.Attributes.AttributeType; | |
import com.comphenix.example.Attributes.Operation; | |
import com.google.common.base.Objects; | |
import com.google.common.base.Preconditions; |
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
/** | |
* Converts the player inventory to a String array of Base64 strings. First string is the content and second string is the armor. | |
* | |
* @param playerInventory to turn into an array of strings. | |
* @return Array of strings: [ main content, armor content ] | |
* @throws IllegalStateException | |
*/ | |
public static String[] playerInventoryToBase64(PlayerInventory playerInventory) throws IllegalStateException { | |
//get the main content part, this doesn't return the armor | |
String content = toBase64(playerInventory); |