Skip to content

Instantly share code, notes, and snippets.

View AboorvaDevarajan's full-sized avatar
🎯
Focusing

Aboorva Devarajan AboorvaDevarajan

🎯
Focusing
View GitHub Profile
@AboorvaDevarajan
AboorvaDevarajan / review-introduction.ipynb
Created September 21, 2019 19:10
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AboorvaDevarajan
AboorvaDevarajan / tmux.md
Created November 13, 2018 08:13 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Plotly.js
- Grid
- Base Styles
- Typography
- Links
- Buttons
- Forms
- Lists
program main
use mpi
integer fh, i
integer ierr
integer wrank, wsize
character *(100) filename
integer status(MPI_STATUS_SIZE)
integer buf
call MPI_Init( ierr )
call mpi_comm_rank( MPI_COMM_WORLD, wrank, ierr )
! -*- Mode: Fortran90; -*-
!
! (C) 2003 by Argonne National Laboratory.
! See COPYRIGHT in top-level directory.
!
! DO NOT EDIT THIS FILE. CREATED AUTOMATICALLY WITH TESTMERGE.
!
program main
use mpi
integer maxfparm
! This file created from test/mpi/f77/pt2pt/greqf.f with f77tof90
! -*- Mode: Fortran; -*-
!
! (C) 2003 by Argonne National Laboratory.
! See COPYRIGHT in top-level directory.
!
subroutine query_fn( extrastate, status, ierr )
use mpi
integer status(MPI_STATUS_SIZE), ierr
integer (kind=MPI_ADDRESS_KIND) extrastate, valin, valout, val
@AboorvaDevarajan
AboorvaDevarajan / ProducerConsumer.java
Last active August 29, 2015 14:26
Implementation of Producer Consumer problem studied the use of synchronize, notify(), notifyAll(), sleep() and wait() methods.
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Queue;
class MessageQueue {
Queue<String> queue = new LinkedList<String>();
private int maxSize = 10;
synchronized void removeElement() throws InterruptedException {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AboorvaDevarajan
AboorvaDevarajan / social network
Last active August 29, 2015 14:07
Graph Neo4j (Cypher Queries)
= How to create a GraphGist
:neo4j-version: 2.0.0
:author: Aboorva Devarajan
== Include a query console
+//console+
becomes: