Skip to content

Instantly share code, notes, and snippets.

@c0ldlimit
c0ldlimit / git_newrepo
Created November 16, 2012 17:14
Git: Push a new or existing repo to Github
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line
@rodw
rodw / coffee-as-a-service-via-forever.sh
Created February 12, 2014 00:26
This is an example of a (bash) shell script that uses the forever module to start and stop a CoffeeScript application as if it were a service.
#!/bin/bash
# This is an example of a (bash) shell script that uses the forever module ([1])
# to start and stop a CoffeeScript application as if it were a service.
#
# [1] <https://github.com/nodejitsu/forever>
# ASSUMPTIONS
################################################################################
# 1) You've got a CoffeeScript program you want to run via `forever`.
@PurpleBooth
PurpleBooth / README-Template.md
Last active December 8, 2025 22:56
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Here is a non-exhaustive list of books that have influenced how I think about software.

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a

The MIT License (MIT)

Copyright (c) 2015

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is

@PurpleBooth
PurpleBooth / am-i-ready-to-open-source-this.md
Last active February 4, 2021 22:17
Checklist to see if your open source repo is primetime ready!

Am I ready to Open Source This?

The checklist:

  1. A readme following a good template
  2. A contributing.md with a code of conduct.
  3. A license
  4. Travis configuration
  5. A way for people to raise issues
  6. Link to it
@josefnpat
josefnpat / readme.md
Last active November 7, 2025 09:18
Going from Lua 5.2 to PICO-8's Lua

This information applies to the PICO-8 0.1.6 release.

This document is here to help folks with a proficiency in Lua understand the limitations and discrepencies between Lua and PICO-8's Lua.

You can always view the manual or yellowafterlife's extended 0.1.1 manual.

General

  • anything written in uppercase the PICO-8 editor or .p8 is made lowercase by the editor. → editing the .p8 file directly can work
  • print(function() end) outputs the string function instead of the string function: 0x0000000.
@paulera
paulera / scriprocrastinator.md
Last active November 16, 2020 11:42
Pretend your terminal is doing techy things

Fake process script

Simulates a build/configuration/installation-like process, using a random message with a nice fake progress, with percentage, random total and variable pace. The command does it as many times and as fast as you set in 2 first variables (maxsteps and pace). Goes really well with a cup of coffee! ;)

  • maxsteps = number of steps to run until "finish".
  • pace = step increment speed. Lower numbers are faster. 500 works well.
  • Arrays a, b and c = word lists. change them as you like, words separated by space.

Minified version (for quick procrastination)

@artofquantum
artofquantum / Quantum Entanglement.ipynb
Created January 15, 2019 10:12
Basic quantum entanglement code, written in Python, and using IBM's Qiskit framework.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.