This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- cfg_sp.lua | |
counter = {} | |
function kpress_count(binding, fn, args) | |
if counter.binding then | |
counter.binding = counter.binding + 1 | |
else | |
counter.binding = 1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COUNTER_FILE = "/tmp/notion_counter" | |
function kpress_count(binding, fn, args) | |
local counter = {} | |
local inp = io.open(COUNTER_FILE) | |
if inp then | |
-- read | |
for line in inp:lines() do | |
local k, v = line:match '(%S+)%s+(%S+)%s' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void GameOfLife::split() | |
{ | |
// Strategy: | |
n_x_nodes_ = n_nodes_; | |
n_y_nodes_ = 1; | |
int workload_per_node = 0; | |
int zero_node_workload = 0; | |
if (n_nodes_ > 1) { | |
workload_per_node = int(field_->size_x() / n_nodes_) * (n_nodes_ / (n_nodes_ - 1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/caroline/base/json.cc: In member function ‘base::Value* base::json::Parser::ParseImpl(const string&, off_t*) const’: | |
/opt/caroline/base/json.cc:225:3: error: ‘unique_ptr’ is not a member of ‘std’ | |
std::unique_ptr<Value> value; | |
^ | |
/opt/caroline/base/json.cc:225:24: error: expected primary-expression before ‘>’ token | |
std::unique_ptr<Value> value; | |
^ | |
/opt/caroline/base/json.cc:225:26: error: ‘value’ was not declared in this scope | |
std::unique_ptr<Value> value; | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[x_igomo@triolith1]-[10:09:21 Feb10] ~ | |
$ rpm -qa | grep OFED | |
[x_igomo@triolith1]-[10:09:26 Feb10] ~ | |
$ ibstat | |
CA 'mlx4_0' | |
CA type: MT4099 | |
Number of ports: 1 | |
Firmware version: 2.11.1022 | |
Hardware version: 0 | |
Node GUID: 0x0002c903003d2ce0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cra@hannelore]-[14:09:53 Feb10] /tmp/green | |
$ ls | |
CHG DOSCAR INCAR kappastart OUTCAR POTCAR vasprun.xml | |
CHGCAR EIGENVAL infile.ssposcar KPOINTS PCDAT slurm-861063.out WAVECAR | |
CONTCAR IBZKPT infile.ucposcar OSZICAR POSCAR ucposcar.hcp XDATCAR | |
[cra@hannelore]-[14:10:00 Feb10] /tmp/green | |
$ process_outcar_5.3.py OUTCAR | |
posfile: infile.positions | |
forcefile: infile.forces | |
statfile: infile.stat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
total 88 | |
-rw-r--r-- 1 cra users 1928 Feb 20 15:35 config.cc | |
-rw-r--r-- 1 cra users 972 Feb 20 15:35 config.h | |
-rw-r--r-- 1 cra users 1031 Feb 20 15:36 depth_map.cc | |
-rw-r--r-- 1 cra users 759 Feb 20 15:36 depth_map.h | |
-rw-r--r-- 1 cra users 2818 Feb 20 15:36 depth_mesh.cc | |
-rw-r--r-- 1 cra users 1046 Feb 20 15:36 depth_mesh.h | |
-rw-r--r-- 1 cra users 623 Feb 20 15:36 mesh.cc | |
-rw-r--r-- 1 cra users 1157 Feb 20 15:36 mesh.h | |
-rw-r--r-- 1 cra users 1881 Feb 20 15:36 ply_saver.cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/gnuplot -persist | |
set term postscript enhanced color portrait size 8,8 solid | |
set output "./a.eps" | |
#set term tikz standalone solid fontscale 1 size 20cm, 15cm | |
#set output "/tmp/arsh.tex" | |
load "~/sandbox/linestyles.gnuplot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/gnuplot -persist | |
#set term postscript enhanced color portrait size 8,8 solid | |
#set output "./a.eps" | |
set term tikz standalone solid #fontscale 1 #size 20cm, 15cm | |
set output "/tmp/arsh.tex" | |
load "~/sandbox/linestyles.gnuplot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# coding: utf-8 | |
import readline | |
import sys | |
import re | |
from decimal import Decimal | |
from datetime import datetime | |
OlderNewer