This file contains hidden or 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
input { | |
udp { | |
port => 5959 | |
codec => "json" | |
} | |
generator { | |
count => 0 | |
debug => true | |
lines => [ "line 1", "line 2", "line 3" ] | |
} |
This file contains hidden or 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
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, |
This file contains hidden or 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
{ | |
"posts": [{ | |
"id": "1", | |
"title": "Rails is Omakase", | |
"links": { | |
"author": "9" | |
} | |
}], | |
"linked": { | |
"people": [{ |
This file contains hidden or 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
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): |
This file contains hidden or 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
+ (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; |
This file contains hidden or 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.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" |
This file contains hidden or 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
void SetupTrackingObject() | |
{ | |
NSApplication* app = [NSApplication sharedApplication]; | |
NSWindow* window = [app mainWindow]; | |
view = [window contentView]; | |
if(pTrackMgr != nil) | |
{ | |
[view setNextResponder:[pTrackMgr nextResponder]]; | |
[pTrackMgr release]; |
This file contains hidden or 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
_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 |
This file contains hidden or 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
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 |
This file contains hidden or 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
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. */ |