Skip to content

Instantly share code, notes, and snippets.

Steve Phillips elimisteve

View GitHub Profile
@elimisteve
elimisteve / json.go
Created Dec 1, 2018
Go JSON handlers
View json.go
package main
import (
"fmt"
"net/http"
log "github.com/Sirupsen/logrus"
"github.com/gorilla/websocket"
)
@elimisteve
elimisteve / now_api.go
Created Nov 9, 2018
Trivial Go server
View now_api.go
package main
import (
"encoding/json"
"net/http"
"time"
"github.com/gorilla/mux"
)
@elimisteve
elimisteve / 01-code_example.md
Last active Sep 8, 2018
Go 2 error handling
View 01-code_example.md
@elimisteve
elimisteve / pursuance_pitch.md
Last active Nov 9, 2017
Pursuance: elevator pitch
View pursuance_pitch.md

What is Pursuance?

Pursuance is a software tool for effectively organizing individuals to achieve a shared mission.

Our free, open source, and secure Pursuance System software enables participants to: create action-oriented groups called "pursuances", discuss how best to achieve their mission, rapidly record exciting strategies and ideas in an actionable form (namely as tasks), divvy up those tasks among one other, share files and documents, get summoned when relevant events occur (e.g., when they are assigned a task, or when mentioned), request help from others, receive social recognition for their contributions, and to delegate tasks to other pursuances in this ecosystem in order to harness its collective intelligence, passion, and expertise.

Pursuance can be used for a great many things. But we, its creators, have certain interests. Specifically, we are focused on organizing activists, journalists, and non-profits in order to solve serious problems we face as a society -- the surveillance state, th

@elimisteve
elimisteve / jobs.md
Created Nov 7, 2017
Awesome engineers jobs at world-changing companies
View jobs.md
@elimisteve
elimisteve / task_hierarchy.json
Created Oct 21, 2017
Desired Task Hierarchy
View task_hierarchy.json
[
{
"id": 1,
"pursuance_id": 1,
"title": "Kick ass",
"title_enc": "",
"deliverables": "Finish everything. Now.",
"deliverables_enc": "",
"assigned_to": null,
"created": "2017-10-20T21:48:56.834231-07:00",
View keybase.md

Keybase proof

I hereby claim:

  • I am pursuanceproject on github.
  • I am pursuance (https://keybase.io/pursuance) on keybase.
  • I have a public key ASDfOyZlg5jPJHajnm-D3TKjBuyLQPeOi-XaZa0Q5eiTewo

To claim this, I am signing this object:

View leapchat_info_modal.md

Welcome to LeapChat!

LeapChat: encrypted, ephemeral, in-browser chat.

Just visit leapchat.org and a new, secure chat room will instantly be created for you. And once you're in, just link people to that page to invite them to join you!

Why LeapChat?

You shouldn't have to sacrifice your privacy and personal information just to chat online. Slack, HipChat, and others make you create an account with your email address, their software doesn't encrypt your messages (they can see everything), and the messages last forever unless you manually delete them.

@elimisteve
elimisteve / ncat.md
Last active Aug 28, 2018
ncat tricks/examples
View ncat.md

ncat trick #1

Run these in 2 terminals, after ncat is installed:

$ ncat -l -p 9999

And on the other one:

@elimisteve
elimisteve / metaviews.py
Created Jun 23, 2017
Django metaview experiment
View metaviews.py
def edit_model(cls, get_dict, update_keys, update_dict_eval):
def _edit_model_view(request):
instance = get_object_or_404(cls, **get_dict)
model_name = cls_to_name(cls)
ModelForm = eval(model_name + 'Form')
if request.method == 'POST':
form = ModelForm(request.POST, request.FILES)
if form.is_valid():
updated_instance = cls()
You can’t perform that action at this time.