- download patchwork client: https://github.com/ssbc/patchwork/releases (on linux: chmod +x the AppImage file and run it)
- get an invite from a "pub": http://ssb.hypersignal.xyz/invited
- find me by searching for:
- my public key: @XLsfMrSXsuet590kR5I6SZ0jUDxhUPQWoVSy6loX1mI=.ed25519 (
@
is optional?) - my handle: @aguestuser
- my public key: @XLsfMrSXsuet590kR5I6SZ0jUDxhUPQWoVSy6loX1mI=.ed25519 (
- docs: https://www.scuttlebutt.nz
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
module OAuthSignupHandlers | |
extend ActiveSupport::Concern | |
def classify_person | |
if @person = Person.find_by_email(@auth.info.email) | |
classify_existing_person | |
elsif @person = Person.build_from_oauth_signup(@auth) | |
NewMember | |
else | |
Invalid |
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
# USAGE: | |
# cd /path/to/sideload-signal.sh | |
# chmod +x sideload-signal.sh | |
# ./sideload-signal.sh | |
# DEPENDENCIES: | |
# * Android Debug Bridge | |
# (install with: `sudo apt install adb`) |
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
package org.osmdroid.tileprovider.tilesource; | |
import org.osmdroid.tileprovider.MapTile; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class TileSourceFactory { | |
// private static final Logger logger = LoggerFactory.getLogger(TileSourceFactory.class); |
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 _ from 'lodash'; | |
import fs from 'fs'; | |
/** | |
* FILENAME: `makeFolders.js` | |
* USAGE: `babel-node makeFolders <rootFolder> <startMonth> <endMonth>` | |
*/ | |
const pad = (num) => num < 10 ? `0${num}` : num; | |
const has30 = (month) => _.contains([4, 6, 9, 11], month); |
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
// main loop | |
// run with `node scratchpad some arguments` (from same directory) | |
(function (){ | |
var args = process.argv; | |
console.log(wrapInEverything(args[2])); | |
// teaser for later: what will lines 11-13 do? | |
// what about lines 15-17? |
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 android.text.SpannableString; | |
import android.text.util.Linkify; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class Text { | |
// takes arbitrary string and wraps arbitrary substring with an arbtitrary URL | |
public static SpannableString linkify(String txt, String linkTxt, String scheme, String url) { | |
SpannableString s = new SpannableString(txt); |
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
;;; init.el --- Prelude's configuration entry point. | |
;; | |
;; Copyright (c) 2011 Bozhidar Batsov | |
;; | |
;; Author: Bozhidar Batsov <[email protected]> | |
;; URL: http://batsov.com/prelude | |
;; Version: 1.0.0 | |
;; Keywords: convenience | |
;; This file is not part of GNU Emacs. |
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
/* | |
BIG TAKEAWAY LESSON: | |
* stop and ask yourself: "WHAT PROBLEM AM I TRYING TO SOLVE RIGHT NOW" | |
* particularly when the code starts pushing you around | |
* you can tell the code is pushing you around when: | |
* things are breaking | |
* you start chasing frantically from error message to error message |
NewerOlder