Skip to content

Instantly share code, notes, and snippets.

# All files in the 'lib' directory will be loaded
# before nanoc starts compiling.
include Nanoc3::Helpers::LinkTo
# Creates a HTML link using link_to, except when the linked item is the
# current one. In this case, a span element with class "active" and with
# the given text will be returned.
#
# Examples:
@lcw
lcw / config
Created December 31, 2009 04:02
Host *
ServerAliveInterval 120
ServerAliveCountMax 3
#ForwardX11 yes
#ForwardX11Trusted yes
ForwardAgent yes
IdentityFile ~/.ssh/id_rsa
Host jungfrau
Compression yes
HostName jungfrau.ices.utexas.edu
[rss]
[[office]]
uri = http://www.tvnzb.com/tvnzb_new.rss
cat = ""
pp = ""
script = None
enable = 1
filter0 = "", "", None, R, Housewives
filter1 = "", "", None, A, NFL*Cowboys*
filter2 = "", "", None, A, The*Office*720p
@lcw
lcw / ruby array
Created January 12, 2010 16:21 — forked from anonymous/ruby array
@destinations=Array.new
@harvest.people.find(:all).each do |p|
unless p.is_contractor
unless p.is_active==false
unless ["AM","Sales","Management","Executive","OPS","Marketing"].include? p.department
entries = p.entries :from => @beginning_date, :to => @ending_date
unless (entries and entries.length > 0)
@destinations << p.email
end
#include <stdio.h>
#include <mpi.h>
int main(int argc, char **argv)
{
int rank, size;
MPI_Init(&argc, &argv);
MPI_Comm_size(MPI_COMM_WORLD, &size);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
printf( "Hello world from process %d of %d\n", rank, size );
#!/bin/bash
#BSUB -e ./%J.e # file name for stderr
#BSUB -o ./%J.o # file name for stdout
#BSUB -a mpich_gm # architecture
#BSUB -q normal # Queue name
#BSUB -J try # Job name
#BSUB -n 2 # number of processors.
#BSUB -W 00:05 # run time.
echo # this can't be deleted!
Warning: Permanently added 'compute-12-3' (RSA) to the list of known hosts.
Sender: LSF System <lsfadmin@compute-12-3>
Subject: Job 70892: <try> Done
Job <try> was submitted from host <login-2-6> by user <lucasw> in cluster <lsfhpc>.
Job was executed on host(s) <2*compute-12-3>, in queue <normal>, as user <lucasw> in cluster <lsfhpc>.
</home/lucasw> was used as the home directory.
</home/lucasw/hello> was used as the working directory.
Started at Mon May 3 10:24:17 2010
Results reported at Mon May 3 10:24:27 2010
--[ MESH INFORMATION ]----------------------------
NODES : 1587
ELEMENTS : 968
MESH INSIDE :
[ -5.000000 , 5.000000 ] x [ -5.000000 , 5.000000 ] x [ -0.500000 , 0.500000 ]
==================================================
OCCA mode: OpenMP
OCCA is using Compiler: g++
with flags : -D__extern_always_inline=inline -O3
@lcw
lcw / fortran.vim
Last active August 29, 2015 14:14
" ******** Syntax highlighting
if has("syntax")
syntax clear
source $VIMRUNTIME/syntax/fortran.vim
function! TextEnableCodeSnip(filetype,start,end,textSnipHl) abort
let ft=toupper(a:filetype)
let group='textGroup'.ft
if exists('b:current_syntax')
let s:current_syntax=b:current_syntax