This file contains 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
""" Holds all factories used in this app's test suite """ | |
import factory | |
from django.contrib.auth import get_user_model | |
User = get_user_model() | |
def get_or_create_xxx_group(): |
This file contains 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
<html> | |
<head> | |
<title>remove last row from a table</title> | |
<script language="JavaScript" type="text/javascript"> | |
<!-- | |
var rws; | |
function RemoveRow(obj){ | |
obj=document.getElementById(obj); | |
rws=obj.getElementsByTagName('TR'); | |
obj.removeChild(rws[rws.length-1]); |
This file contains 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 csv | |
import requests | |
def list_github_repos(user_name): | |
""" | |
Lists public repositories for the specified user. | |
Args: | |
user_name (str): user whose repos you want listed | |
""" |
![what-a-strange-repo.5.gif](https://gist.github.com/MrCordeiro/edb704a22ea7896fbf7edac3f387224b/raw/dd9cc7b9d6df19ab22026d97d0b22d40e3d7d730/what-a-strange-repo.5.gif)
![what-a-strange-repo.0.gif](https://gist.github.com/MrCordeiro/efe1ae9ac1123035221006ef2195478f/raw/0019afec150ac9c88be86d0bf721476e486b0d5a/what-a-strange-repo.0.gif)
![what-a-strange-repo.2.gif](https://gist.github.com/MrCordeiro/175c18ca0bca9f4dc9558995ee1be3d1/raw/213a91346341cb9b7263de83d6fbc7849d9847fe/what-a-strange-repo.2.gif)
![what-a-strange-repo.4.gif](https://gist.github.com/MrCordeiro/603e0cf5ebffca1cea3298cb98c9b498/raw/0dfdd995228ebde37bff8e752ea688b73b9d0ca0/what-a-strange-repo.4.gif)
![what-a-strange-repo.1.gif](https://gist.github.com/MrCordeiro/64c4d6478b95d229474827cd786d517a/raw/0bf6578adeb965354a3cd9955302e3444937f609/what-a-strange-repo.1.gif)
![what-a-strange-repo.3.gif](https://gist.github.com/MrCordeiro/f38be5a38b5ea1ef32bd46c486f70bda/raw/c11aa34e75e1cec53bb5bebc2131521d9326ccd8/what-a-strange-repo.3.gif)
This file contains 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
/** | |
* Displays the remaining time before date | |
*/ | |
timer = function () { | |
// Set the date we're counting down to | |
const startDate = new Date(Date.UTC(2020, 9, 5)); | |
const endDate = new Date(Date.UTC(2021, 0, 15)); | |
const now = new Date(); | |
const timeTotal = endDate - startDate; | |
const timeLeft = endDate - now; |
OlderNewer