(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // Let's define a basic Swift class. | |
| class Fruit { | |
| var type=1 | |
| var name="Apple" | |
| var delicious=true | |
| } | |
| // We can get at some info about an instance of an object using reflect(), which returns a Mirror. | |
| reflect(Fruit()).count | |
| reflect(Fruit())[1].0 |
Throughout, let
return_type be the type of object/primitive/etc. you'd like to return (commonly void)blockName be the variable name of the block you're creatingvar_type be the type object/primitive/etc. you'd like to pass as an argument (leave blank for no parameters)varName be the variable name of the given parameter And remember that you can create as many parameters as you'd like.Possibly the most common for of declaration.
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
| // Defines a yet undocumented method to add a warning if super isn't called. | |
| #ifndef NS_REQUIRES_SUPER | |
| #if __has_attribute(objc_requires_super) | |
| #define NS_REQUIRES_SUPER __attribute((objc_requires_super)) | |
| #else | |
| #define NS_REQUIRES_SUPER | |
| #endif | |
| #endif | |
| @interface UIViewController (SubclassingWarnings) |
| #define USE_ROBIN_HOOD_HASH 1 | |
| #define USE_SEPARATE_HASH_ARRAY 1 | |
| template<class Key, class Value> | |
| class hash_table | |
| { | |
| static const int INITIAL_SIZE = 256; | |
| static const int LOAD_FACTOR_PERCENT = 90; | |
| struct elem |
| #ifndef WIN32_NO_STATUS | |
| # define WIN32_NO_STATUS | |
| #endif | |
| #include <windows.h> | |
| #include <assert.h> | |
| #include <stdio.h> | |
| #include <winerror.h> | |
| #include <stddef.h> | |
| #include <winnt.h> | |
| #include <limits.h> |
| public class YouTubeExampleFragmentActivity extends SherlockFragmentActivity implements YouTubePlayer.OnInitializedListener { | |
| private static final String mDeveloperKey = null; //make sure to change this to your project's API key | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.screen_console); | |
Since this is on Hacker News and reddit...
_t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".char *s.type * name, however, is entirely intentional.