Skip to content

Instantly share code, notes, and snippets.

View congqiao's full-sized avatar

Cong Qiao congqiao

View GitHub Profile
@congqiao
congqiao / job.sh
Created September 12, 2014 21:03
MPI segmentation fault on Stampede
#!/usr/bin/env bash
#SBATCH -J mpi_seg_fault
#SBATCH -n 16
#SBATCH -p normal
#SBATCH -t 48:00:00
ibrun ./a.out
@congqiao
congqiao / time_mpi.c
Created September 16, 2014 01:56
Timing MPI routines
#include <mpi.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
int num = 7;
int i;
int rank;
double begin, end;
@congqiao
congqiao / git.sh
Last active August 29, 2015 14:07
Build scripts
#!/bin/bash
VERSION="2.1.2"
wget -O - https://www.kernel.org/pub/software/scm/git/git-${VERSION}.tar.gz | tar -xz
cd git-${VERSION}/
./configure --prefix=$HOME/.local
make install
@congqiao
congqiao / Makefile.intel
Last active August 29, 2015 14:17
LAMMPS MAKE
# intel = Intel
SHELL = /bin/sh
# ---------------------------------------------------------------------
# compiler/linker settings
# specify flags and libraries needed for your compiler
CC = mpic++
CCFLAGS = -O3
@congqiao
congqiao / music.js
Created August 10, 2015 20:59
网易云音乐网页海外播放
GAbroad = false;
document.getElementById('g_iframe').contentWindow.GAbroad = false;
@congqiao
congqiao / DataTable.js
Last active April 4, 2017 19:48
Simple Material-UI data table
import React from 'react'
import _ from 'lodash'
import shortid from 'shortid'
import { grey300 } from 'material-ui/styles/colors'
import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table'
const DataTable = ({
columns,
data,
getRowKey,

Keybase proof

I hereby claim:

  • I am congqiao on github.
  • I am congqiao (https://keybase.io/congqiao) on keybase.
  • I have a public key ASBdp6izVJ0qaK4qm4hNZigG-1qBNtF-EATehi9l8Yos3Qo

To claim this, I am signing this object:

@congqiao
congqiao / bl3-save-editing.md
Last active June 30, 2023 09:00
Borderlands 3 Save Editing - Unlimited Diamond Keys, Unlimited Golden Keys

Borderlands 3 Save Editing

Install Scoop.

Install Python.

scoop install python

Install bl3-cli-saveedit.