Skip to content

Instantly share code, notes, and snippets.

import time
print "..."
time.sleep(1)
print "..."
print "..."
print "..."
print "..."
time.sleep(1)
print "..."
import os
import pathlib
import sys
import dj_database_url
class SettingsBase(type):
"""Class-based settings meta class"""
@arxdsilva
arxdsilva / working_directory.go
Last active February 12, 2024 13:30
How to get the current working directory in golang
package main
// More info on Getwd()
// https://golang.org/src/os/getwd.go
//
import(
"os"
"fmt"
"log"
)
@bennadel
bennadel / code-1.htm
Created March 25, 2014 12:13
Creating A Fixed-Length Queue In JavaScript Using Arrays
<!DOCTYPE html>
<html>
<head>
<title>Fixed-Length Queue Data Type In JavaScript</title>
<script type="text/javascript">
// Create a constructor for the fixed-length queue. This is
// really more of a FACTORY than a construtor since an