This file contains hidden or 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
""" | |
Module containing the methods required to make a pretty SED plot. | |
This replaces the IDL scripts sedpars.pro and nmmn.sed.pro. | |
""" | |
import numpy, pylab, os, scipy | |
import astropy.io.ascii as ascii | |
import nmmn.sed,nmmn.lsd | |
This file contains hidden or 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
#!/bin/sh | |
# | |
# Applies the given awk pattern matching to all specified files | |
# in current dir. | |
# | |
# ./awkBatch.sh <awk pattern> <extension> | |
# | |
# Example: | |
# ./awkBatch.sh /void/ c | |
# lists all instances of lines with "void" in *.c files in current dir. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
-- Set up the initial document | |
set output to (("List of open tabs in Safari" & linefeed as string) & "=======================" & linefeed as string) & linefeed as string | |
tell application "Safari" | |
-- Count the number of Windows | |
set numWindows to number of windows | |
repeat with w from 1 to numWindows |
This file contains hidden or 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
-- Set up the initial document | |
set output to ("List of open tabs in Safari" & linefeed as string) & "=======================" & linefeed as string | |
tell application "Safari" | |
-- Count the number of Windows | |
set numWindows to number of windows | |
repeat with w from 1 to numWindows |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
#!/bin/sh | |
# Create a new directory somewhere in your machine, let's say `fermi`: | |
mkdir fermi | |
cd fermi | |
echo "Created fermi dir" | |
echo | |
# Clone the repository with the lesson notebook. | |
git clone https://github.com/black-hole-group/fermipy-tutorial.git | |
echo "Downloaded lesson files from github" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
/* | |
This example should illustrate how to transfer an array of | |
structs to the device with CUDA. | |
Inspired on https://stackoverflow.com/questions/43175162/copying-array-of-structs-from-host-to-device-cuda | |
*/ | |
#include <stdio.h> | |
#define TPB 64 |
NewerOlder