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
program allocate | |
implicit none | |
! an allocatable array of integers | |
integer, allocatable :: numbers(:) | |
! some variables | |
integer :: n, err, i = 0 | |
do | |
! how many elements? | |
n = howmany() |
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
package main | |
import ( | |
"log" | |
"sync" | |
) | |
type Job struct { | |
source int | |
} |
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
import logging | |
import os | |
import signal | |
from logging.handlers import QueueHandler, RotatingFileHandler, QueueListener | |
from multiprocessing import Manager | |
DEBUG = os.environ.get("DEBUG", False) | |
OlderNewer