Skip to content

Instantly share code, notes, and snippets.

View duartenina's full-sized avatar

Duarte Nina duartenina

View GitHub Profile
[16:02:42] [Server thread/INFO]: Starting minecraft server version 1.7.2
[16:02:42] [Server thread/INFO]: Loading properties
[16:02:42] [Server thread/INFO]: Default game type: CREATIVE
[16:02:42] [Server thread/INFO]: Generating keypair
[16:02:43] [Server thread/INFO]: Starting Minecraft server on *:25565
[16:02:43] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-1.7.2-R0.3-b3020jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.3)
[16:02:43] [Thread-7/WARN]: ----- Bukkit Auto Updater -----
[16:02:43] [Thread-7/WARN]: Your version of CraftBukkit is out of date. Version 1.7.9-R0.2 (build #3092) was released on Sun Jun 01 05:22:21 CEST 2014.
[16:02:43] [Thread-7/WARN]: Details: http://dl.bukkit.org/downloads/craftbukkit/view/02631_1.7.9-R0.2/
[16:02:43] [Thread-7/WARN]: Download: http://dl.bukkit.org/downloads/craftbukkit/get/02631_1.7.9-R0.2/craftbukkit-beta.jar
[16:11:49 WARN]: java.net.SocketTimeoutException: Read timed out
[16:11:49 WARN]: at java.net.SocketInputStream.socketRead0(Native Method)
[16:11:49 WARN]: at java.net.SocketInputStream.read(SocketInputStream.java:150)
[16:11:49 WARN]: at java.net.SocketInputStream.read(SocketInputStream.java:121)
[16:11:49 WARN]: at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
[16:11:49 WARN]: at sun.security.ssl.InputRecord.read(InputRecord.java:480)
[16:11:49 WARN]: at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
[16:11:49 WARN]: at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
[16:11:49 WARN]: at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
[16:11:49 WARN]: at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
TuxTwoLib v1.7.2-b3
Total time 0 (0s)
MultiInv v3.2.7
Total time 0 (0s)
WorldEdit v5.6.1
PluginEnableEvent Time: 498636 Count: 13 Avg: 38356
Total time 498636 (0s)
SimpleSignEdit v2.1
EntityDamageEvent Time: 388776 Count: 56 Avg: 6942
Total time 388776 (0s)
[00:12:12] [Server thread/INFO]: [WorldGuard] 0 regions loaded for '1'
[01:58:18] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 16316680ms behind, skipping 326333 tick(s)
[02:01:20] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 181352ms behind, skipping 3627 tick(s)
[02:04:24] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 184568ms behind, skipping 3691 tick(s)
[02:07:26] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 181297ms behind, skipping 3625 tick(s)
[02:10:28] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 182064ms behind, skipping 3641 tick(s)
[02:13:30] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 182759ms behind, skipping 3655 tick(s)
[02:16:33] [Server thread/WARN]: Can'
@duartenina
duartenina / number_trick.py
Created July 11, 2014 14:16
Number trick (always gets 13)
def get_max_exponent (n):
n_copy = int(n)
n_max = 0
while True:
div = 10**n_max
if (n_copy//div)*div == 0:
break
n_max += 1
return n_max - 1 #To get the break condition, it's needed the first exponent larger than the number
def build_min_table(self):
self.mins = {}
for ID in range(1, len(self.mapa.cities) + 1):
self.mins[ID] = {}
connects = self.mapa.cities[ID - 1].connects
if len(connects) < 1:
for kind in self.kinds:
self.mins[ID][kind] = 10**6
return
@duartenina
duartenina / chimeclicker.py
Created January 17, 2016 20:23
ChimeClicker
# coding: utf-8
# In[107]:
import numpy as np
import matplotlib.pyplot as plt
get_ipython().magic('matplotlib inline')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
from findiff import FinDiff
import matplotlib.pyplot as plt
import findiff
print(findiff.__version__)
def f(x):
return x * np.exp(-x**2)
def df_dx(x):