Skip to content

Instantly share code, notes, and snippets.

View kevinw's full-sized avatar

Kevin Watters kevinw

View GitHub Profile
input {
udp {
port => 5959
codec => "json"
}
generator {
count => 0
debug => true
lines => [ "line 1", "line 2", "line 3" ]
}
docs/client/commandline.html:7:<!-- XXX some intro text? -->
docs/client/api.js:1735:// XXX move these up to right place
docs/client/api.html:1652:<!-- XXX replace d6 with _.random once we have underscore 1.4.2 -->
docs/client/docs.js:7: // XXX this is broken by the new multi-page layout. Also, it was
docs/client/introduction.html:5:<!-- XXX by: (three headshot thumbnails w names) -->
docs/client/packages/showdown.html:5:<!-- XXX rename to markdown when we rename the package -->
docs/client/packages/showdown.html:13:<!-- XXX include an example -->
examples/unfinished/azrael/client/azrael.js:11:// XXX would be nice to eliminate this function and have people just
examples/unfinished/azrael/client/azrael.js:14: // XXX pushstate
examples/unfinished/azrael/client/azrael.js:24: // XXX it would be nice if this were find instead of findLive (ie,
{
"posts": [{
"id": "1",
"title": "Rails is Omakase",
"links": {
"author": "9"
}
}],
"linked": {
"people": [{
class RelatedModelSerializer(serializers.ModelSerializer):
def to_native(self, obj):
ret = super(RelatedModelSerializer, self).to_native(obj)
ret = {
'result': ret
}
for field_name, field in self.get_default_fields():
if instanceof(field, PrimaryKeyRelatedField):
+ (UIImage *)imageNamed:(NSString *)imageName
fromBytes:(const Byte *)bytes
length:(NSUInteger)length
fromRetinaBytes:(const Byte *)retinaBytes
retinaLength:(NSUInteger)retinaLength {
NSString *bundleName = [FBSettings resourceBundleName];
if (bundleName) {
UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"%@.bundle/%@", bundleName, imageName]];
if (image) {
return image;
package.path = package.path .. ';generated/?.lua;lib/?.lua'
function love.conf(conf)
conf.window.width = 768
conf.window.height = 1024
conf.window.title = "my title"
conf.modules.joystick = false
end
require "mainmoon"
void SetupTrackingObject()
{
NSApplication* app = [NSApplication sharedApplication];
NSWindow* window = [app mainWindow];
view = [window contentView];
if(pTrackMgr != nil)
{
[view setNextResponder:[pTrackMgr nextResponder]];
[pTrackMgr release];
@kevinw
kevinw / wat.lua
Created September 25, 2015 05:28
_G['require'] = function(p)
res = nil
if not pcall(function()
res = _require(p)
end) then
if not pcall(function()
res = _require("generated/" .. p)
end) then
res = _require("lib/" ..p)
end
Process: love [1629]
Path: /Users/USER/Downloads/*/love.app/Contents/MacOS/love
Identifier: org.love2d.love
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: love [1629]
User ID: 501
Date/Time: 2015-09-25 13:50:07.635 -0700
using UnityEngine;
using UnityEditor;
public static class ResetSelectedTransforms
{
[MenuItem("Utilities/Reset Selected Transforms &z", true)]
static bool ValidateResetSelectedTransforms() { return Selection.activeTransform != null; }
/* Use option-z or alt-z to zero out the position and rotation and set the scale to 1 for
the selected transforms. */