Skip to content

Instantly share code, notes, and snippets.

View keclements's full-sized avatar
:octocat:
hi

KE Clements keclements

:octocat:
hi
View GitHub Profile
import uuid # Required for unique book instances
class BookInstance(models.Model):
"""Model representing a specific copy of a book (i.e. that can be borrowed from the library)."""
id = models.UUIDField(primary_key=True, default=uuid.uuid4, help_text='Unique ID for this particular book across whole library')
book = models.ForeignKey('Book', on_delete=models.SET_NULL, null=True)
imprint = models.CharField(max_length=200)
due_back = models.DateField(null=True, blank=True)
LOAN_STATUS = (
@keclements
keclements / homebrew-commands.md
Last active January 23, 2019 23:32
Homebrew Commands
COMMAND DESCRIPTION
install Install formula
uninstall / rm / remove Uninstall formula
reinstall Uninstall and then install formula
update Fetch the newest version of Homebrew and all formulae
upgrade Upgrade outdated, unpinned brews
search Display all locally available formulae for brewing
list / ls List all files in the Homebrew prefix not installed by Homebrew
# OneTab shared tabs
[![](https://www.one-tab.com/web/images/top-left-logo.png)](https://www.one-
tab.com/)
Shared: 662 tabs
![](https://www.one-tab.com/api/qrCode?pageId=SvL4cFQQQhWZk_H_l_iOdQ)
Scan this QR code using the Barcode Scanner app on your mobile or tablet
@keclements
keclements / what-is-this
Created April 26, 2018 02:08
what is this
- **[Uppy](https://github.com/transloadit/uppy)** is a sleek, modular JavaScript file uploader that integrates seamlessly with any application. It’s fast, easy to use and lets you worry about more important problems than building a file uploader.
@keclements
keclements / bibtex.png
Created April 25, 2018 20:20 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@keclements
keclements / documentation-links
Created April 24, 2018 22:22
[Documentation Links} #doc
@keclements
keclements / make_bookmarklet.pl
Created April 24, 2018 22:20 — forked from gruber/make_bookmarklet.pl
JavaScript Bookmarklet Builder
#!/usr/bin/env perl
#
# http://daringfireball.net/2007/03/javascript_bookmarklet_builder
use strict;
use warnings;
use URI::Escape qw(uri_escape_utf8);
use open IO => ":utf8", # UTF8 by default
":std"; # Apply to STDIN/STDOUT/STDERR
Gitlab tricks
Quick actions are textual shortcuts for common actions on issues or merge requests that are usually done by clicking buttons or dropdowns in GitLab's UI. You can enter these commands while creating a new issue or merge request, and in comments. Each command should be on a separate line in order to be properly detected and executed. The commands are removed from the issue, merge request or comment body before it is saved and will not be visible to anyone else.
Below is a list of all of the available commands and descriptions about what they do.
| Command | Action |
| ------------------------------ | -------------------------------------------------------------- |
| `/close` | Close the issue or merge request |
| `/reopen` | Reopen the issue or merge request |
|
--------------------------
2018_04_24
------------
----------------
* [How to fork your own repo in Github](http://kroltech.com/2014/01/01/quick-tip-how-to-fork-your-own-repo-in-github/)
* [Directory](https://apis.guru/openapi-directory/)
* [Top 20 Best Tech Websites & Blogs](http://www.grafdom.com/blog/top-20-best-tech-websites-and-blogs/)
* [Indie Hackers: Work Together to Build Profitable Online Businesses](https://www.indiehackers.com/)
@keclements
keclements / awesome-cli.md
Last active June 3, 2023 05:46
[CLI, Shell, Etc] #awesome-list #shell #cli

awesome cli apps