Skip to content

Instantly share code, notes, and snippets.

View dariusk's full-sized avatar

Darius Kazemi dariusk

View GitHub Profile
@hartsick
hartsick / masto-guide-for-friends.md
Last active April 6, 2023 19:39
My tips for friends thinking of joining Mastodon

A guide for friends considering Mastodon

A lot of my friends have recently been considering leaving Twitter for other networks, and many are considering Mastodon. There are many guides floating about that can tell you about Mastodon and the Fediverse, which is really exciting! It can be overwhelming to sort through them all, though, and honestly I haven't read them since I know my way around.

So, this is the blog version of me sitting down with a friend explaining what I know about Mastodon and how I'd recommend approaching setting up an account there for the first time and getting oriented.

What's in this:

  1. What is the Fediverse / Mastodon?
  2. Why would I want to join?
  3. Where do I start?
@feus4177
feus4177 / ManageOrdersRelay.js
Created October 1, 2017 02:59
Example using createPaginationContainer from RelayJS.
import React from 'react';
import PropTypes from 'prop-types';
import {graphql, QueryRenderer, createPaginationContainer} from 'react-relay';
import {Button} from 'react-bootstrap';
import environment from '@/environment';
import PageBar from '@/components/PageBar';
import Loading from '@/components/Loading';
import OrderTableRelay from '@/components/OrderTableRelay';
@decthomas
decthomas / Gruntfile.js
Last active December 15, 2015 22:59
Example Gruntfile.js for use with Jekyll
// This is the main application configuration file. It is a Grunt
// configuration file, which you can learn more about here:
// https://github.com/cowboy/grunt/blob/master/docs/configuring.md
/*jslint nomen: true*/
'use strict';
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
// The clean task ensures the entire XXX folder is removed
clean: {
@jugglinmike
jugglinmike / phonetic.js
Last active December 14, 2015 20:19
A script to expand acronyms in text to their phonetic equivalents
// phonetic.js
// A script to expand acronyms in text to their phonetic equivalents
var defaultInput = "I am the illest MC that you ever SAW";
var sounds = {
A: "ay",
B: "bee",
C: "see",
D: "dee",
E: "ee",
F: "eff",
@silentbicycle
silentbicycle / rapbot_say
Created February 25, 2013 16:55
glue rapbot to say(1)
#!/bin/sh
VOICE="-v fred"
#VOICE="-v ralph"
#VOICE="-v lee"
curl http://rapbot.jit.su/ 2>/dev/null | awk '
{
for (i=1; i<NF; i++) {
if (match($i, "twitter.com/share")) {