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/env python | |
# Copyright 2020 Kemal Kurniawan | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
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
# Copyright 2020 Kemal Kurniawan | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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.
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/env python | |
import argparse | |
import os | |
import subprocess | |
import tarfile | |
""" | |
This scipt compresses all directories inside a root directory to a | |
.tar.gz file. This script should be run with Python 3 in a machine |
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/env python | |
""" | |
This script renames all directories in the format "<movie name>" to | |
"<movie name> (<year>)". The year is fetched from IMDb. The root of movie | |
directories to be renamed is assumed to be stored in MOVIES_DIR environment | |
variable. | |
This script is meant to be run with Python 2. IMDbPY needs to be installed. |
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
{-# OPTIONS_GHC -Wall #-} | |
module BFS where | |
import Control.Monad (guard) | |
type Node = String | |
type Edge = (Node, Node) |
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
/****************************************************************************** | |
* FILE: mpi_mm.c | |
* DESCRIPTION: | |
* MPI Matrix Multiply - C Version | |
* In this code, the master task distributes a matrix multiply | |
* operation to numtasks-1 worker tasks. | |
* NOTE: C and Fortran versions of this code differ because of the way | |
* arrays are stored/passed. C arrays are row-major order but Fortran | |
* arrays are column-major order. | |
* AUTHOR: Blaise Barney. Adapted from Ros Leibensperger, Cornell Theory |
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/python2 | |
from __future__ import division | |
from __future__ import print_function | |
import itertools as it | |
import cvxpy as cvx | |
import matplotlib.pyplot as plt | |
import numpy as np |
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/python2 | |
from __future__ import division | |
from __future__ import print_function | |
import itertools as it | |
import cvxpy as cvx | |
import matplotlib.pyplot as plt | |
import numpy as np |
NewerOlder