- Hat: Thrusters (+ UI Panel nav?)
- Trigger: Primary Fire (Discovery Scanner)
- 2 (L1): Secondary Fire
- 3 (R3): Select Target
This file contains 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 { useState, useEffect } from 'react'; | |
import { useQuery } from 'react-query'; | |
// Pretend this is real & extracts server-side data from a hidden element with | |
// `data-*` attributes or similar. | |
import { pageContext } from '../utils/pageTools'; | |
// Again, pretend this is real & handles websocket comms. | |
import { | |
followUserActivity, |
This file contains 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
// Remove Me | |
package main | |
// package random | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) |
This file contains 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 main | |
import ( | |
"container/list" | |
"fmt" | |
"time" | |
) | |
func main() { | |
l := list.New() |
This file contains 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 django.shortcuts import redirect, render | |
def my_view(request): | |
if request.method == 'POST': | |
form = MyForm(request.POST) | |
if form.is_valid(): | |
# Save some data then... | |
return redirect('view-name-here', kwargs_go=here) |
This file contains 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
# Python *built-ins* | |
import datetime | |
import os | |
import time | |
# Pip-installed *Python* libraries | |
import boto | |
import requests | |
# Django *built-ins* |
This file contains 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
// | |
// ViewController.swift | |
// TestUI | |
// | |
// Created by Daniel on 6/5/14. | |
// Copyright (c) 2014 Daniel. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
This file contains 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 Cocoa | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
@IBOutlet var window: NSWindow | |
func applicationDidFinishLaunching(aNotification: NSNotification?) { | |
var frame = NSMakeRect(0, 0, 200, 200) | |
var window = NSWindow(contentRect:frame, styleMask:NSBorderlessWindowMask, backing:NSBackingStoreType.Buffered, defer:false) | |
// This doesn't seem to have an effect. :/ |
This file contains 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 boto.s3 import S3RegionInfo | |
from boto.s3.connection import S3Connection | |
import redis | |
class CachedS3Connection(S3Connection): | |
cache_conn = redis.StrictRedis() | |
def get_all_buckets(self, headers=None): | |
if self.cache_conn.exists('all_buckets'): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder