| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| SELECT | |
| FORMAT_DATE('%F', d) as id, | |
| d AS full_date, | |
| EXTRACT(YEAR FROM d) AS year, | |
| EXTRACT(WEEK FROM d) AS year_week, | |
| EXTRACT(DAY FROM d) AS year_day, | |
| EXTRACT(YEAR FROM d) AS fiscal_year, | |
| FORMAT_DATE('%Q', d) as fiscal_qtr, | |
| EXTRACT(MONTH FROM d) AS month, | |
| FORMAT_DATE('%B', d) as month_name, |
ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
| if exists("*ToggleBackground") == 0 | |
| function ToggleBackground() | |
| if &background == "dark" | |
| set background=light | |
| else | |
| set background=dark | |
| endif | |
| endfunction | |
| command BG call ToggleBackground() |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)
zf#jcreates a fold from the cursor down # lines.zf/stringcreates a fold from the cursor to string .zjmoves the cursor to the next fold.zkmoves the cursor to the previous fold.zoopens a fold at the cursor.zOopens all folds at the cursor.zmincreases the foldlevel by one.zMcloses all open folds.