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
# 75 #, because who needs a channel with any name? #-offtopic for messages with content. | |
#!/bin/mksh 8 The MirBSD Korn Shell | http://www.mirbsd.org/mksh.htm R59c (2020-10-31) | mksh/Win32 Beta 14 || dev version: $ CVS_RSH=ssh cvs -d _anoncvs@anoncvs.mirbsd.org:/cvs co -PA mksh | see website for docs || we’re on OFTC for now || https://paypal.me/mirabilos to support my work | |
#!/bin/sh 15 sh — shell, the standard command language interpreter. Can you even su?! (consider using #!/bin/zsh - it's so much fun - Oh My ZSH!) | |
#!/bin/zsh 7 There is no SH like ZSH | |
#!sXe 3 _\|/_ Welcome to #!sXe _\|/_ http://hasthelargehadroncolliderdestroyedtheworldyet.com _\|/_ | |
## 154 [🐁] Welcome to ##, the small channel with a BIG heart! ## your hyperbole servit since 2021 ## shmoos have a soft and creamy texture | |
### 5 | |
#### 5 | |
################################################## 7 You did it! Fifty hashtags. Welcome to ################################################## - the bonus level. Grab some popcorn and enjoy the drama board moni |
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 json | |
import urllib.request | |
# Chrome's debugging protocol is accessible on localhost port 9222 | |
url = "http://localhost:9222/json" | |
try: | |
with urllib.request.urlopen(url) as response: | |
tabs = json.loads(response.read().decode()) | |
for tab in tabs: |
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
;;; rcirc-pending.el --- allow editing messages after they are submitted | |
;; Author: Ryan Yeske <rcirc@ryanyeske.com> | |
;; Keywords: comm |
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
;;; annotate.el --- mark up foreign language buffers according to anki deck | |
;; Copyright (C) 2009 Ryan Yeske | |
;; Author: Ryan Yeske <rcyeske@gmail.com> | |
;; Keywords: languages | |
;; Version: 2009-03-17 23:04:03 | |
;; This program is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
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
#!/bin/bash | |
# | |
# usage: rehash.sh committed/*.sql | |
# | |
# This will update each file's Previous and Hash values | |
# | |
function sum { | |
sha1sum | cut -d' ' -f1 | |
} |
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
(defun rcirc-reposition-to-bottom (orig-fun &rest args) | |
"Reposition the window to put point at bottom line." | |
(when (and (eq major-mode 'rcirc-mode) | |
(eq (point) (point-max)) | |
(recenter -1)))) | |
(advice-add 'text-scale-adjust :after #'rcirc-reposition-to-bottom) |
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
(progn | |
(condition-case nil | |
(scroll-down 1) | |
(error nil)) | |
(message "got here")) | |
;; simpler version of above | |
(progn | |
(ignore-errors (scroll-down 1)) | |
(message "got here")) |
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 React, { Component } from 'react'; | |
import { gql, graphql, withApollo, compose } from 'react-apollo'; | |
class Box extends Component { | |
state = { | |
mutateCount: 0, // the number of times we have called mutate() | |
subCount: 0, // the number of times we have received subscription event | |
}; | |
componentWillMount() { |
NewerOlder