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
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
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
(require '[clojure.core.async :as async] | |
'[clj-http.client :as client] | |
'[clojure.data.json :as json]) | |
(def concurrency 5) | |
(let [in (async/chan) | |
out (async/chan) | |
request-handler (fn [url out*] | |
(async/go |
- USB Overdrive
- A non-Apple keyboard with media keys (or keys you want to make "media" keys). For reference, I'm using a Microsoft Sidewinder X4
- Plug in your keyboard and install USB Overdrive.
- Open USB Overdrive. Click into the Settings tab.
- Click the dropdown and select "Any Keyboard, Any Application"
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 os | |
# Output file | |
file = open(os.path.expanduser("~/Desktop/model3d.mdl"), "w") | |
model_object = None | |
model_mesh = None | |
# Search for the first object of type mesh | |
for obj in bpy.context.scene.objects: |
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
# Copyright (c) 2012, Ryan Gomba | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. | |
# 2. Redistributions in binary form must reproduce the above copyright notice, | |
# this list of conditions and the following disclaimer in the documentation |
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
// Display a progressbar | |
- (void)progress:(int)progress withMessage:(NSString*)message { | |
UIView* v = [[[UIView alloc] init] autorelease]; | |
v.frame = CGRectMake(0, 0, 200, 30); | |
v.backgroundColor = [UIColor clearColor]; | |
UILabel* lbl = [[[UILabel alloc] init] autorelease]; | |
lbl.frame = CGRectMake(0,0, 200, 15); | |
lbl.backgroundColor = [UIColor clearColor]; | |
lbl.textColor = [UIColor whiteColor]; |