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
-- _Ents: Filters current entities in the engine, matching their component names and/or display names. | |
-- | |
-- @param pattern: filter by entities with component names matching pattern. Empty string "" matches all. | |
-- @param displayNamePattern: filter by entities with displayName (where displayName is a heuristic determined | |
-- from various components) matching `displayNamePattern`. Empty string "" matches all. | |
-- @param withComponents: include component names in the output result | |
-- | |
_Ents = function(pattern, displayNamePattern, withComponents) | |
local entities = Ext.Entity.GetAllEntities() | |
local result = {} |
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 System; | |
namespace Entitas { | |
/** Used in the *AnyChangeObservable methods to observe multiple change types */ | |
[Flags] | |
public enum ChangeType : short{ | |
Addition = 1 << 0, | |
Replacement = 1 << 1, | |
Removal = 1 << 2, |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export2.dtd"> | |
<en-export export-date="20120322T185030Z" application="Evernote" version="Evernote Mac 3.0.6 (221382)"> | |
<note><title>1.0 meal</title><content><![CDATA[<?xml version='1.0' encoding='utf-8'?> | |
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"> | |
<en-note style="margin:10px;background-color:rgb(86, 81, 78);font-size:13px;color:rgb(80, 80, 80);text-align:center;font-family:Helvetica;"> | |
<div style="font-size:13px;color:rgb(80, 80, 80);text-align:center;font-family:Helvetica;x-evernote:food-meal;"> | |
<div style="max-width:600px;padding-bottom:3.125%;background-color:#fff;box-shadow:0 3px 15px rgba(0,0,0,.5);-webkit-box-shadow:0 3px 15px rgba(0,0,0,.5);margin:20px auto;"> | |
<div style="margin-left: 3.334%;text-align:left;"> | |
<div style="padding-top:3.45%;padding-right:3.45%;"> |
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
{ | |
"firstName": "John", | |
"middleName": "M", | |
"lastName": "Appleseed", | |
"age": 30, | |
"addresses":[ | |
{ | |
"streetAddress": "222 North Mountain Rd.", | |
"city": "Redwood City", | |
"state": "CA", |
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
for(UILabel* label in self.allLabels){ | |
[label setText:NSLocalizedString(label.text, @"")]; | |
} |
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
switch (group) { | |
case NAME_GROUP:{ | |
switch(row){ | |
case FIRST_NAME_ROW:{ | |
// do first name things | |
break; | |
} | |
// ... | |
} | |
break; |
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
// defines... | |
#define SECTION_AND_ROW_INT(section, row) (row | section << 16) | |
#define SECTION_AND_ROW_FOR_FIRST_NAME SECTION_AND_ROW_INT(0, 0) | |
#define SECTION_AND_ROW_FOR_LAST_NAME SECTION_AND_ROW_INT(0, 1) | |
#define SECTION_AND_ROW_FOR_AGE SECTION_AND_ROW_INT(1, 0) | |
// ... | |
// sample switch |
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
#!/bin/sh | |
echo "switch(<#expression#>){" | |
echo -n "%%%{PBXSelection}%%%" | |
awk '/#define/ {print " case "$2":{\n break;\n }"}' <&0 | |
echo -n "%%%{PBXSelection}%%%" | |
echo "}" |
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
#ifdef DEBUG | |
#define DLog(fmt, ...) NSLog((@"%s <%@:%d> " fmt), __PRETTY_FUNCTION__, [[NSString stringWithFormat:@"%s", __FILE__ ] lastPathComponent] ,__LINE__, ##__VA_ARGS__) | |
#else | |
#define DLog(format, ...) | |
#endif |
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
// | |
// SHKTableViewCell.m | |
// RIL | |
// | |
// Created by Nathan Weiner on 6/30/10. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |