- Am I able to focus?
- Are there distractions I can get rid of? a. Silence phone a. Close irrelevant browser tabs and windows
- In the last 30 minutes, have I... a. Stepped away from the screen
- In the last two hours, have I... a. Drank some water
This file contains hidden or 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 requests | |
# 'Host': 'www.fightcade.com', | |
# 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0', | |
# 'Accept': 'application/json, text/plain, */*', | |
# 'Accept-Language': 'en-US,en;q=0.5', | |
# 'Accept-Encoding': 'gzip, deflate', | |
# 'Content-Type': 'application/json;charset=utf-8', | |
# 'Origin': 'https://www.fightcade.com', | |
# 'Referer': 'https://www.fightcade.com/id/Tonren', | |
# 'Cookie': 'cf_clearance=gVpaOGa7hGGeHCt.gu4rjFUtoiFTlXvRpRxflh0O9As-1744823962-1.2.1.1-UCfh1OuYBIyJWVArkIw1Qq5zF3FAp1.tg_9tzdaa0kraKKeqKAVUPbV8VpojnA1hU2B.etJDyziqFrqi24iXl2adgu1yMGUMtuheUICQmeRC8pL5IZE5KFSTIL9FyD93i8klMbFXS31YIHRO6VrhoRzE2XgSKRxP2llTIA9aq.7G3OBQCTjjI8qgFAoU1vGaWsGdPI7pL3UKsQge2PAFgR7PZLIvBHbb0qwFNnBB_0gROXEcBBTsGnlv26OoPPrmydf0Iyka3YcLv7FK9zzgtcQRcGH4DTg8zjhiY_scN3T_EAAOB2irGb1N9DBp6yPjZ04VPqqT9sFfqVi0ks4Xg8p2X0TXP1LWqOtInDEI.YM', |
This file contains hidden or 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
from pywinauto.application import Application | |
import os | |
import time, datetime | |
import threading, subprocess | |
def find_record_dialog(fcadefbneo_path): | |
app = Application(backend="win32").connect(path=f"{fcadefbneo_path}\\fcadefbneo.exe") | |
win = app.top_window() | |
win.menu_select("Game->RecordAVI") |
This file contains hidden or 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
" Produces output like: | |
" vimOption (PreProc fg=225 bg=) < vimSet (fg= bg=) < vimFuncBody (fg= bg=) | |
nnoremap g<C-h> :echo GetSynInfo()<CR> | |
function! GetSynInfo() | |
let stack = synstack(line("."), col(".")) | |
let info = "" | |
for synid in reverse(stack) | |
if strlen(info) |
This file contains hidden or 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
" Cycle Line Number Display: serialized by Max Cantor | |
" Twiddle options to make the line number feature more accessible | |
" | |
" Notes: | |
" for a list of useful arguments to :hilight | |
" :help highlight-args | |
" | |
" example highlight customization | |
" :highlight LineNr cterm=NONE ctermbg=black ctermfg=cyan |
This file contains hidden or 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
1: ~/.vimrc | |
2: /usr/local/Cellar/vim/8.0.0495/share/vim/vim80/syntax/syntax.vim | |
3: /usr/local/Cellar/vim/8.0.0495/share/vim/vim80/syntax/synload.vim | |
4: /usr/local/Cellar/vim/8.0.0495/share/vim/vim80/syntax/syncolor.vim | |
5: /usr/local/Cellar/vim/8.0.0495/share/vim/vim80/filetype.vim | |
6: ~/.common-public/vim/.vim/colors/hhdgray.vim | |
7: /usr/local/Cellar/vim/8.0.0495/share/vim/vim80/plugin/getscriptPlugin.vim | |
8: /usr/local/Cellar/vim/8.0.0495/share/vim/vim80/plugin/gzip.vim | |
9: /usr/local/Cellar/vim/8.0.0495/share/vim/vim80/plugin/logiPat.vim | |
10: /usr/local/Cellar/vim/8.0.0495/share/vim/vim80/plugin/manpager.vim |
This file contains hidden or 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
BASIC_BIND = <<-YAML.strip | |
First Name: Max | |
Last Name: Cantor | |
Display Name: !bind First Name | |
YAML | |
RSpec.describe Yuby do | |
it "performs basic binding" do | |
hash = Yuby.load BASIC_BIND | |
expect(hash["Display Name"]).to( |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
const LEFT_MOUSE = 0, | |
DRAG_CLASS = "being-dragged"; | |
function Draggable(el, handle) { | |
handle.addEventListener("mousedown", event => { | |
if (event.button != LEFT_MOUSE) { return false; } | |
event.preventDefault(); | |
new Drag(this, event.clientY); | |
}); |
This file contains hidden or 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
SELECT | |
state, | |
COUNT(state) | |
FROM users | |
GROUP BY state | |
-- BONUS 2: Only get states with more than 10 users | |
HAVING COUNT(state) > 10 | |
-- BONUS 1: Order from lowest to highest user count | |
ORDER BY COUNT(state) |
NewerOlder