Skip to content

Instantly share code, notes, and snippets.

@Endle
Endle / logseq_show_current_sprint
Created Mar 7, 2022
logseq_show_current_sprint
View logseq_show_current_sprint
#+BEGIN_QUERY
{:title "On Sprint"
:query [:find (pull ?b [*])
:where
[?b :block/marker ?marker]
[(contains? #{"NOW" "DOING" "TODO"} ?marker)]
[?b :block/page ?p]
[?p :page/name ?pn]
( or [?p :page/journal? true]
[?p :page/name "weekly sprint"]
@Endle
Endle / timecount.html
Created Aug 10, 2016
Javascript time count 简单的计时器代码
View timecount.html
<html>
<head>
<script type="text/javascript">
var BEGIN_TIME=new Date();
var HOUR=BEGIN_TIME.getHours();
var MINUTE=BEGIN_TIME.getMinutes();
var SECOND=BEGIN_TIME.getSeconds();
var ID_ARRAY=[]
function startTime()
{
View gist:4667c6c867a9c4981312
#!/usr/bin/env python
from __future__ import print_function, unicode_literals
import sys, os
import subprocess
WINE_ROOT = "/home/lizhenbo/src/wine"
WINE_LOG = "/dev/shm/log"
@Endle
Endle / window_write.html
Created Jul 20, 2015
Gist by paste.py @ 2015-07-20 12:17:13.723065
View window_write.html
<!DOCTYPE html>
<html>
<body>
<p>Open "myWindow" and move the new window to the top left corner of the screen:</p>
<button onclick="openWin()">Open "myWindow"</button>
<script>
var myw;
@Endle
Endle / backtrace.txt
Created Jul 12, 2015
Gist by paste.py @ 2015-07-12 20:32:57.679910
View backtrace.txt
Unhandled exception: page fault on read access to 0x00000004 in 32-bit code (0x7e6fdeb6).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:7e6fdeb6 ESP:0032d2c0 EBP:0032d2e8 EFLAGS:00010216( R- -- I -A-P- )
EAX:00000000 EBX:7e74f000 ECX:0032d640 EDX:0419a688
ESI:0032d6f0 EDI:0376b828
Stack dump:
0x0032d2c0: 7e74f000 0032d340 0032d328 7e706794
0x0032d2d0: 7e74f000 0032d340 7e69e791 7e706794
0x0032d2e0: 7e7598c4 7e74f000 0032d318 7e70352b
@Endle
Endle / log
Created Apr 5, 2015
Gist by paste.py @ 2015-04-05 16:45:55.195202
View log
2015-04-05 16:31:07,542 - WARNING - tvb.simulator.lab - Plotting tools will not be available: No module named networkx:
2015-04-05 16:31:07,546 - DEBUG - tvb.simulator.backend.driver - using_gpu = 1
E....................................2015-04-05 16:31:08,256 - WARNING - tvb.basic.readers - File cortical not found in ZIP.
2015-04-05 16:31:08,257 - WARNING - tvb.basic.readers - File hemispheres not found in ZIP.
2015-04-05 16:31:08,257 - WARNING - tvb.basic.readers - File areas not found in ZIP.
.2015-04-05 16:31:08,273 - WARNING - tvb.basic.readers - File cortical not found in ZIP.
2015-04-05 16:31:08,273 - WARNING - tvb.basic.readers - File hemispheres not found in ZIP.
.2015-04-05 16:31:08,286 - WARNING - tvb.basic.readers - You need h5py properly installed in order to load from a HDF5 source.
2015-04-05 16:31:08,287 - ERROR - tvb.basic.readers - Could not read from weights field
Traceback (most recent call last):
@Endle
Endle / pip.log
Created Mar 27, 2015
/root/.pip/pip.log
View pip.log
------------------------------------------------------------
/bin/pip run on Fri Mar 27 19:40:32 2015
Downloading/unpacking scipy
Getting page https://pypi.python.org/simple/scipy/
URLs to search for versions for scipy:
* https://pypi.python.org/simple/scipy/
Analyzing links from page https://pypi.python.org/simple/scipy/
Skipping https://pypi.python.org/packages/2.7/s/scipy/scipy-0.13.3-cp27-none-macosx_10_6_intel.whl#md5=4bc791c9f37645380cab2843e63d18db (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/2.7/s/scipy/scipy-0.15.1-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=a8cf565477600cbedcd5462f2baeeb0e (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/3.3/s/scipy/scipy-0.13.3-cp33-cp33m-macosx_10_6_intel.whl#md5=ca634955b1757fe5e22c6a8a035bb328 (from https:/
@Endle
Endle / Makefile
Created Mar 25, 2015
Makefile for XPPAUT on SageMath Cloud
View Makefile
# Copyright (C) 1990-2013 Bard Ermentrout & Daniel Dougherty & Robert McDougal
# Edited for Debian GNU/Linux.
#BINDIR = /usr/X11R6/bin
DESTDIR =
BINDIR = /usr/local/bin
DOCDIR = /usr/share/doc/xppaut
MANDIR = /usr/local/man/man1
# End Debian Edit
#################################
#
View 2nd try
%pylab inline
import sys
sys.path.append('/projects/f17095cb-9e19-4f80-84a1-c235978d4d50/tvb-library')
sys.path.append('/projects/f17095cb-9e19-4f80-84a1-c235978d4d50/tvb-library')
Then got
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-27b6da6d2648> in <module>()
----> 1 from tvb.simulator.lab import *
View gist:a1a81316e3bee865d4b3
0. Create a project
1.
git clone https://github.com/the-virtual-brain/tvb-library
git clone https://github.com/the-virtual-brain/tvb-data
2. In the webpage <https://cloud.sagemath.com/projects/f17095cb-9e19-4f80-84a1-c235978d4d50/files/tvb-library/tvb/simulator/doc/tutorials/Tutorial_Region_Stimuli/>
Choose Tutorial_Region_Stimuli.ipynb
3. Change
---
%pylab inline
---