One Paragraph of project description goes here
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.
/* | |
the twitter api is stupid. it is stupid and bad and expensive. hence, this. | |
Literally just paste this in the JS console on the bookmarks tab and the script will automatically scroll to the bottom of your bookmarks and keep a track of them as it goes. | |
When finished, it downloads a JSON file containing the raw text content of every bookmark. | |
for now it stores just the text inside the tweet itself, but if you're reading this why don't you go ahead and try to also store other information (author, tweetLink, pictures, everything). come on. do it. please? | |
*/ |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Deny", | |
"Action": [ | |
"logs:CreateLogGroup", | |
"logs:CreateLogStream", | |
"logs:PutLogEvents" | |
], |
# coding=utf-8 | |
# Copyright 2023 The HuggingFace Inc. team. All rights reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
<select class="form-control " id="bank"> | |
<option selected>Choose</option> | |
<option value="access">Access Bank</option> | |
<option value="citibank">Citibank</option> | |
<option value="diamond">Diamond Bank</option> | |
<option value="ecobank">Ecobank</option> | |
<option value="fidelity">Fidelity Bank</option> | |
<option value="firstbank">First Bank</option> | |
<option value="fcmb">First City Monument Bank (FCMB)</option> | |
<option value="gtb">Guaranty Trust Bank (GTB)</option> |
import os | |
SECRET_KEY = os.environ['SECRET_KEY'] | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql', | |
'NAME': os.environ['DATABASE_NAME'], | |
'HOST': os.environ['DATABASE_HOST'], | |
'PORT': int(os.environ['DATABASE_PORT']), |
@app.route("/sitemap") | |
@app.route("/sitemap/") | |
@app.route("/sitemap.xml") | |
def sitemap(): | |
""" | |
Route to dynamically generate a sitemap of your website/application. | |
lastmod and priority tags omitted on static pages. | |
lastmod included on dynamic content such as blog posts. | |
""" | |
from flask import make_response, request, render_template |
'''This script can be used to export data from Pocket (getpocket.com) | |
Uses include migrating to a different "read it later" service, saving | |
specific articles to another service, backing up your reading history, | |
and more. | |
Currently it can be used to export links and metadata for archived | |
articles with a given tag, which are more recent than a given timestamp. | |
An example use case is to export all articles you have tagged as | |
"to-export", which are newer than 10 days old. The timestamp functionality |
.pagination{height:36px;margin:0;padding: 0;} | |
.pager,.pagination ul{margin-left:0;*zoom:1} | |
.pagination ul{padding:0;display:inline-block;*display:inline;margin-bottom:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)} | |
.pagination li{display:inline} | |
.pagination a{float:left;padding:0 12px;line-height:30px;text-decoration:none;border:1px solid #ddd;border-left-width:0} | |
.pagination .active a,.pagination a:hover{background-color:#f5f5f5;color:#94999E} | |
.pagination .active a{color:#94999E;cursor:default} | |
.pagination .disabled a,.pagination .disabled a:hover,.pagination .disabled span{color:#94999E;background-color:transparent;cursor:default} | |
.pagination li:first-child a,.pagination li:first-child span{border-left-width:1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px} | |
.pagination li:last-child a{-webkit-border-radius:0 3px 3px 0; |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |