repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
pavankumarbn/VTKExamples
src/Cxx/Developers/vtkTestAlgorithmSource.h
#ifndef __vtkTestAlgorithmSource_h #define __vtkTestAlgorithmSource_h #include <vtkAlgorithm.h> class vtkDataSet; class vtkTest1; class vtkTestAlgorithmSource : public vtkAlgorithm { public: static vtkTestAlgorithmSource *New(); vtkTypeMacro(vtkTestAlgorithmSource,vtkAlgorithm); void PrintSelf(ostream& os, vtk...
pavankumarbn/VTKExamples
src/Cxx/Developers/vtkTestAlgorithmFilter.h
#ifndef __vtkTestAlgorithmFilter_h #define __vtkTestAlgorithmFilter_h #include <vtkAlgorithm.h> class vtkDataSet; class vtkTest; class vtkTestAlgorithmFilter : public vtkAlgorithm { public: static vtkTestAlgorithmFilter *New(); vtkTypeMacro(vtkTestAlgorithmFilter,vtkAlgorithm); void PrintSelf(ostream& ...
pavankumarbn/VTKExamples
src/Cxx/Interaction/vtkTestFilter.h
#ifndef __vtkTestFilter_h #define __vtkTestFilter_h #include <vtkPolyDataAlgorithm.h> class vtkTestFilter : public vtkPolyDataAlgorithm { public: vtkTypeMacro(vtkTestFilter,vtkPolyDataAlgorithm); static vtkTestFilter *New(); int RefreshEvent; protected: vtkTestFilter(); int RequestData(vtkInformation *, ...
ThomasAdam/gameoftrees
lib/diff_output.c
<reponame>ThomasAdam/gameoftrees /* Common parts for printing diff output */ /* * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appe...
ThomasAdam/gameoftrees
lib/diff_output_edscript.c
<reponame>ThomasAdam/gameoftrees /* Produce ed(1) script output from a diff_result. */ /* * Copyright (c) 2020 <NAME> <<EMAIL>> * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above *...
ThomasAdam/gameoftrees
lib/error.c
<filename>lib/error.c /* * Copyright (c) 2018 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS...
ThomasAdam/gameoftrees
lib/got_lib_diff.h
<reponame>ThomasAdam/gameoftrees /* * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROV...
ThomasAdam/gameoftrees
lib/got_lib_worktree.h
<reponame>ThomasAdam/gameoftrees<filename>lib/got_lib_worktree.h /* * Copyright (c) 2018 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all co...
ThomasAdam/gameoftrees
gotweb/gotweb.c
/* * Copyright (c) 2019, 2020 <NAME> <<EMAIL>> * Copyright (c) 2018, 2019 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * TH...
ThomasAdam/gameoftrees
lib/delta.c
<gh_stars>1-10 /* * Copyright (c) 2018 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND T...
ThomasAdam/gameoftrees
lib/deflate.c
<reponame>ThomasAdam/gameoftrees /* * Copyright (c) 2019 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROV...
ThomasAdam/gameoftrees
libexec/got-read-tree/got-read-tree.c
<reponame>ThomasAdam/gameoftrees<filename>libexec/got-read-tree/got-read-tree.c /* * Copyright (c) 2018, 2019, 2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permiss...
ThomasAdam/gameoftrees
lib/got_lib_privsep.h
<filename>lib/got_lib_privsep.h<gh_stars>1-10 /* * Copyright (c) 2018, 2019 <NAME> <<EMAIL>> * Copyright (c) 2019, <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permiss...
ThomasAdam/gameoftrees
libexec/got-index-pack/got-index-pack.c
<reponame>ThomasAdam/gameoftrees /* * Copyright (c) 2019 <NAME> <<EMAIL>> * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in...
ThomasAdam/gameoftrees
lib/diff_output_unidiff.c
/* Produce a unidiff output from a diff_result. */ /* * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * TH...
ThomasAdam/gameoftrees
libexec/got-fetch-pack/got-fetch-pack.c
/* * Copyright (c) 2019 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
ThomasAdam/gameoftrees
lib/delta_cache.c
/* * Copyright (c) 2019, 2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
ThomasAdam/gameoftrees
include/got_compat.h
<filename>include/got_compat.h #ifndef _GOT_COMPAT_H #define _GOT_COMPAT_H #include <sys/types.h> #include <sys/ioctl.h> #include <sys/uio.h> #include <fnmatch.h> #include <limits.h> #include <stdio.h> #include <stdint.h> /* #include <termios.h> #include <wchar.h> */ /* For flock. */ #ifndef O_EXLOCK #define O_EXLO...
ThomasAdam/gameoftrees
lib/repository.c
/* * Copyright (c) 2018, 2019, 2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE ...
ThomasAdam/gameoftrees
lib/fetch.c
<filename>lib/fetch.c<gh_stars>1-10 /* * Copyright (c) 2018, 2019 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWAR...
ayoubboum/share_image_socially
ios/Classes/ShareImageSociallyPlugin.h
#import <Flutter/Flutter.h> @interface ShareImageSociallyPlugin : NSObject<FlutterPlugin> @end
simo-andreev/Emotion
Emotion/Assets/Shaders/GetTextureSize.c
<filename>Emotion/Assets/Shaders/GetTextureSize.c #define getTextureSize(sampler) textureSize(sampler, 0)
simo-andreev/Emotion
Emotion/Assets/Shaders/GetTextureColor.c
#define getTextureColor(sampler, uv) texture(sampler, uv)
nebososo/uzebox-patch-converter
input.h
bool read_patches(const char *fn, std::map<std::string, std::vector<uint8_t>> &data);
nebososo/uzebox-patch-converter
step_table.h
<gh_stars>1-10 const int step_table[] = { 0x0022, 0x0024, 0x0026, 0x0028, 0x002b, 0x002d, 0x0030, 0x0033, 0x0036, 0x0039, 0x003d, 0x0040, 0x0044, 0x0048, 0x004c, 0x0051, 0x0056, 0x005b, 0x0060, 0x0066, 0x006c, 0x0073, 0x0079, 0x0081, 0x0088, 0x0090, 0x0099, 0x00a2, 0x00ac, 0x00b6, 0x00c1, 0x00cc, 0x00d8, 0x00e5...
nebososo/uzebox-patch-converter
generate.h
#define SAMPLE_RATE 15734 #define SAMPLES_PER_FRAME ((SAMPLE_RATE)/60) #define DEFAULT_VOLUME 0xc0 #define PC_ENV_SPEED 0 #define PC_NOISE_PARAMS 1 #define PC_WAVE 2 #define PC_NOTE_UP 3 #define PC_NOTE_DOWN 4 #define PC_NOTE_CUT 5 #define PC_NOTE_HOLD 6 #define PC_ENV_VOL 7 #define PC_PITCH 8 #define PC_TREMOLO_LEVEL...
k-ishigaki/Linesensor2017
src/hardware/TimerModule.c
<reponame>k-ishigaki/Linesensor2017 #include <xc.h> #include "Hardware.h" #ifndef DECLARED_ONCE #define DECLARED_ONCE // ---------------------------------------------------------------------------- // Timer0Module_Constants // ---------------------------------------------------------------------------- enum Timer0Modu...
k-ishigaki/Linesensor2017
src/hardware/Compare.h
<gh_stars>0 #ifndef COMPARE_H #define COMPARE_H #include <stdint.h> /** * Compare presetting count value with base timer count value. * * On compare matched, a event occur. * The event may be user settable. (ex: software interrupt) */ struct Compare { /** * Set count value compared with base timer count. * ...
k-ishigaki/Linesensor2017
src/application/DigitalPin.h
#ifndef DIGITAL_PIN_H #define DIGITAL_PIN_H #include <stdbool.h> struct DigitalPin { void (*setDirection)(bool); bool (*read)(void); void (*write)(bool); }; #endif /* DIGITAL_PIN_H */
k-ishigaki/Linesensor2017
src/hardware/USART.h
<filename>src/hardware/USART.h #ifndef USART_H #define USART_H #include <stdint.h> struct USART { /** * Read from receive buffer. * * Before reading from the buffer, you must confirm that data exists * in it. * * @return received data in receive buffer */ uint16_t (*read)(void); /** * Represent re...
k-ishigaki/Linesensor2017
src/hardware/Capture.h
<filename>src/hardware/Capture.h #ifndef CAPTURE_H #define CAPTURE_H #include <stdint.h> /** * Captures pin event and gets timer count value of that time. * * The got timer count is obtained at Capture#getCapturedCount. */ struct Capture { /** * Get the captured timer count value/ * * If capture event occu...
k-ishigaki/Linesensor2017
src/hardware/I2C.h
#ifndef I2C_H #define I2C_H #include <stdint.h> #include <stdbool.h> struct I2C { /** * Generate start consdition as a master. */ void (*generateStartCondition)(void); /** * Generate stop condition as a master. */ void (*generateStopCondition)(void); /** * Generate restart condition as a master. */...
k-ishigaki/Linesensor2017
src/application/AnalogInputPin.c
#include "AnalogInputPin.h" #include "IOPort.h" #include "ADConverter.h" #ifndef COMMON_DECLARATION #define COMMON_DECLARATION static void setPinModes_dummy(uint8_t pos, char mode) { } static uint8_t read_dummy(void) { return 0; } static void write_dummy(uint8_t pos, uint8_t output) { } static void toggle_dummy(uin...
k-ishigaki/Linesensor2017
src/hardware/ADConverter.h
<filename>src/hardware/ADConverter.h #ifndef AD_CONVERTER_H #define AD_CONVERTER_H #include <stdbool.h> #include <stdint.h> /** * Analog to Digital Converter. */ struct ADConverter { /** * Select input channel of the AD conveter. * * Please ensure the pin is analog inputable before connect * ad conveter i...
k-ishigaki/Linesensor2017
src/hardware/NativeInterrupts.h
#ifndef NATIVE_INTERRUPTS_H #define NATIVE_INTERRUPTS_H /** * A interface of interrupt listener. * * When using native interrupt of peripherals, only you have to do is * create this instance and register it to interrupt service that you * want to listen. * example: * {@code * // creating instance of interrupt ...
k-ishigaki/Linesensor2017
src/application/Application.h
<filename>src/application/Application.h #ifndef APPLICATION_H #define APPLICATION_H /** * Initialize almost all instances and ready for application. * * This method is called by main method. */ void initilize(void); /** * This method called by main loop when any other interrupts or tasks running. */ void idle(v...
k-ishigaki/Linesensor2017
src/hardware/TimerModule.h
<reponame>k-ishigaki/Linesensor2017 #ifndef TIMER_MODULE_H #define TIMER_MODULE_H #include <stdint.h> #include <stdbool.h> /** * Timer module interface. * If you want to use timer overflow interrupt, use InterruptService * interface. */ typedef struct { /** * Get counter value of timer module. * * At seve...
k-ishigaki/Linesensor2017
src/application/LED.h
#ifndef LED_H #define LED_H struct LED { void (*turnOn)(void); void (*turnOff)(void); }; #endif /* LED_H */
k-ishigaki/Linesensor2017
src/application/LineSensor.c
<reponame>k-ishigaki/Linesensor2017 #include "LineSensor.h" #include <stddef.h> #include "LED.h" #include "PhotoTransistor.h" #include "DigitalPin.h" #include "AnalogInputPin.h" #include "Hardware.h" #ifndef COMMON_DECLARATION #define COMMON_DECLARATION // declared at DigitalPin.c extern const struct DigitalPin* ...
k-ishigaki/Linesensor2017
src/hardware/PWM.h
#ifndef PWM_H #define PWM_H #include <stdint.h> /** * Configurator of PWM output. */ struct PWM { /** * Set duty cycle count. * * @param duty cycle count */ void (*setDutyCycle)(uint16_t); }; #endif /* PWM_H */
k-ishigaki/Linesensor2017
src/hardware/InterruptOnChange.h
#ifndef INTERRUPT_ON_CHANGE_H #define INTERRUPT_ON_CHANGE_H #include <stdint.h> #include <stdbool.h> typedef struct { uint8_t positions; uint8_t status; } InterruptOnChange_ChangedPins; typedef struct { /** * Get pin positions which state have been changed. * * The detection of pin state change is conducte...
k-ishigaki/Linesensor2017
src/hardware/AlternatePinFunction.c
#include <xc.h> #include "Hardware.h" #define AlternatePinFunction_(name) AlternatePinFunction_##name enum AlternatePinFunction_(RXAndDT_Constant) { RX_DT_RC5 = 0, RX_DT_RA1 = 1, }; const struct AlternatePinFunction_(RXAndDT) AlternatePinFunction_(RXAndDT) = { RX_DT_RC5, RX_DT_RA1, }; enum AlternatePinFunction_(...
k-ishigaki/Linesensor2017
src/hardware/IOPort.c
#include <xc.h> #include "Hardware.h" #ifndef IO_PORT_COMMON_DECRARED #define IO_PORT_COMMON_DECRARED // ---------------------------------------------------------------------------- // IOPort_PinMode // ---------------------------------------------------------------------------- enum IOPort_PinMode_Constants { DIGITA...
k-ishigaki/Linesensor2017
src/hardware/FixedVoltageReference.c
#include <xc.h> #include "Hardware.h" // ---------------------------------------------------------------------------- // FixedVoltageReference_Constants // ---------------------------------------------------------------------------- enum FixedVoltageReference_Buffer1Reference_Constants { B1_OFF = 0b00, B1_OUTP...
k-ishigaki/Linesensor2017
src/hardware/IOPort.h
#ifndef IO_PORT_H #define IO_PORT_H #include <stdint.h> /** * Defines IO port characteristics includes port configs. * * A function of ADC is not included because ADC module is not part of * IO port module. * * usage: write to output latch * {@code * const struct IOPort* port = Hardware.PortA; // get instance...
k-ishigaki/Linesensor2017
src/hardware/Hardware.h
<filename>src/hardware/Hardware.h /* * Hardware.h * definitions for PIC16F1825 */ #ifndef HARDWARE_H #define HARDWARE_H // ---------------------------------------------------------------------------- // device configurations // ---------------------------------------------------------------------------- // CLKOUT f...
k-ishigaki/Linesensor2017
src/application/PhotoTransistor.h
#ifndef PHOTO_TRANSISTOR_H #define PHOTO_TRANSISTOR_H struct PhotoTransistor { int (*read)(void); }; #endif /* PHOTO_TRANSISTOR_H */
k-ishigaki/Linesensor2017
src/application/main.c
<reponame>k-ishigaki/Linesensor2017 #include <xc.h> #include "Hardware.h" #include "LineSensor.h" #include <stdbool.h> #include <stdio.h> #define _XTAL_FREQ OPERATING_FREQUENCY // RA0 and RA1 are used for debug serial port // (RA0 : TX, RA1 : RX) #define RA0_A0_PIN 0b00000001 #define RA1_A1_PIN 0b00000010 #define ...
k-ishigaki/Linesensor2017
src/hardware/OscillatorModule.c
#include <xc.h> #include "Hardware.h" // ---------------------------------------------------------------------------- // OscillatorModule_InternalClockFrequency // ---------------------------------------------------------------------------- enum OscillatorModule_InternalClockFrequency_Constants { HF_16MHz = 0b1111,...
k-ishigaki/Linesensor2017
src/hardware/MSSP.c
#include <xc.h> #include "Hardware.h" const struct I2C_SlewRateControl I2C_SlewRateControl = { 0, // ENABLE 1, // DISABLE }; const struct I2C_InputThreshold I2C_InputThreshold = { 0, // DEFAULT 1, // SMBUS }; const struct I2C_GeneralCallInterrupt I2C_GeneralCallInterrupt = { 0, // DISABLE 1, // ENABLE }; con...
k-ishigaki/Linesensor2017
src/hardware/EUSART.c
#include <xc.h> #include "Hardware.h" // ---------------------------------------------------------------------------- // EUSART constants // ---------------------------------------------------------------------------- enum EUSART_Mode_Constant { ASYNCHRONOUS, SYNCHRONOUS_MASTER, SYNCHRONOUS_SLAVE, }; const struct E...
k-ishigaki/Linesensor2017
src/application/LineSensor.h
#ifndef LINE_SENSOR_H #define LINE_SENSOR_H #include "LED.h" #include "PhotoTransistor.h" struct LineSensor { const struct LED* (*getLED0)(void); // left edge const struct PhotoTransistor* (*getPhotoTransistor0)(void); const struct LED* (*getLED1)(void); const struct PhotoTransistor* (*getPhotoTransistor1)(voi...
k-ishigaki/Linesensor2017
src/hardware/NativeInterrupts.c
#include <xc.h> /* * To increase registerable number of interrupts, * you can increase LIST_SIZE constant. */ #include "Hardware.h" // dummy instances, priority constants, interrupt vector // are declared once. #ifndef DECRARING_INTERRUPT_SERVICE_COMMON #define DECRARING_INTERRUPT_SERVICE_COMMON enum { LIST_SIZE ...
k-ishigaki/Linesensor2017
src/hardware/CCPModule.c
#include <xc.h> #include "Hardware.h" #ifndef CCP_MODULE_COMMON #define CCP_MODULE_COMMON // ---------------------------------------------------------------------------- // CaptureModule Constants // ---------------------------------------------------------------------------- enum CaptureModule_Mode_Constants { EVERY...
k-ishigaki/Linesensor2017
src/application/AnalogInputPin.h
#ifndef ANALOG_INPUT_PIN_H #define ANALOG_INPUT_PIN_H struct AnalogInputPin { int (*read)(void); }; #endif /* ANALOG_INPUT_PIN_H */
k-ishigaki/Linesensor2017
src/hardware/Hardware.c
#include "Hardware.h" // declared at InterruptVector.c extern const struct InterruptService* ADConverterModuleInterruptService_constructor(); extern const struct InterruptService* Timer0ModuleInterruptService_constructor(); extern const struct InterruptService* Timer1ModuleInterruptService_constructor(); extern const ...
k-ishigaki/Linesensor2017
src/application/PhotoTransistor.c
#include "PhotoTransistor.h" #include "AnalogInputPin.h" #ifndef COMMON_DECLARATION #define COMMON_DECLARATION static int read_dummy() { return 0; } static const struct AnalogInputPin AnalogInputPin_dummy = { read_dummy, }; static const struct PhotoTransistor* PhotoTransistor0_constructor(const struct AnalogInput...
k-ishigaki/Linesensor2017
src/application/DigitalPin.c
#include "DigitalPin.h" #include <stdint.h> #include "IOPort.h" #ifndef COMMON_DECLARATION #define COMMON_DECLARATION static void setPinModes_dummy(uint8_t pos, char mode) { } static uint8_t read_dummy(void) { return 0; } static void write_dummy(uint8_t pos, uint8_t output) { } static void toggle_dummy(uint8_t pos)...
k-ishigaki/Linesensor2017
src/hardware/ADConverterModule.c
<reponame>k-ishigaki/Linesensor2017 #include <xc.h> #include "Hardware.h" // ---------------------------------------------------------------------------- // ADConverterModule_PositiveReference // ---------------------------------------------------------------------------- enum ADConverterModule_PositiveReference_Const...
k-ishigaki/Linesensor2017
src/application/LED.c
#include "LED.h" #include "DigitalPin.h" #include <stdbool.h> #ifndef COMMON_DECLARATION #define COMMON_DECLARATION static void setDirection_dummy(bool direction) { } static bool read_dummy() { return false; } static void write_dummy(bool value) { } static const struct DigitalPin DigitalPin_dummy = { setDirection...
MasterIceZ/genlib
genlib.h
#include<bits/stdc++.h> #include "testlib.h" using namespace std; namespace util{ bool isPrime(int u){ if(u <= 1){ return false; } if(u <= 3){ return true; } if(u % 2 == 0 || u % 3 == 0){ return false; } for(int i=5; i*i<=u; i+=6){ if(u % i == 0 || u % (i + 2) == 0){ return false; } ...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionImageElement.h
<reponame>indragiek/WWDC-2014 // // INDCollectionImageElement.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Mantle/Mantle.h> /** * Collection view element model representing image content. */ @interface INDCollectionImageElement : MTLModel <MT...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDAboutViewController.h
<reponame>indragiek/WWDC-2014 // // INDAboutViewController.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "INDStaticCollectionViewController.h" /** * View controller for the about view. */ @interface INDAboutViewController : INDStaticCollectionV...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionTimelineMilestoneElement.h
<gh_stars>10-100 // // INDCollectionTimelineMilestoneElement.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "INDCollectionTextElement.h" /** * Collection view element model representing a timeline milestone. */ @interface INDCollectionTimelineMi...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDStaticCollectionViewController.h
// // INDStaticCollectionViewController.h // <NAME> // // Created by <NAME> on 2014-04-10. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "INDJSONCollectionViewController.h" /** * Collection view controller that displays static content from "element" model objects. */ @interface INDStaticCollect...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionTimelineMilestoneCellView.h
<gh_stars>10-100 // // INDCollectionTimelineMilestoneCellView.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "INDCollectionTextCellView.h" /** * Content view for a collection view cell that shows a milestone in a timeline. */ @interface INDColle...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionTextElement.h
<reponame>indragiek/WWDC-2014 // // INDCollectionTextElement.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Mantle/Mantle.h> /** * Collection view element model representing text content. */ @interface INDCollectionTextElement : MTLModel <MTLJS...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDJSONModelAdapter.h
// // INDJSONModelAdapter.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> /** * Adapter for converting arrays of model objects between JSON and object representations. */ @interface INDJSONModelAdapter : NSObject /** *...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionTimelineMilestoneMarker.h
<filename>Indragie Karunaratne/Classes/INDCollectionTimelineMilestoneMarker.h // // INDCollectionTimelineMilestoneMarker.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // /** * Draws a timeline milestone marker. */ @interface INDCollectionTimelineMilestoneM...
indragiek/WWDC-2014
Indragie Karunaratne/Categories/NSJSONSerialization+INDAdditions.h
// // NSJSONSerialization+INDAdditions.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSJSONSerialization (INDAdditions) /** * Deserializes JSON from a .json resource file included in the app bundle. * * @...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDMainCellView.h
// // INDMainCellView.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "INDLineSpacingLabel.h" /** * Content view for table view cells in the main view. */ @interface INDMainCellView : UIView /** * Image view that shows the background image. *...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDHTMLToAttributedStringValueTransformer.h
// // INDHTMLToAttributedStringValueTransformer.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> extern NSString * const INDHTMLToAttributedStringValueTransformerName; /** * A value transformer that converts an HTML strin...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDMainViewController.h
<gh_stars>10-100 // // INDMainViewController.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "INDJSONTableViewController.h" @interface INDMainViewController : INDJSONTableViewController @end
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionButton.h
<reponame>indragiek/WWDC-2014<gh_stars>10-100 // // INDCollectionButton.h // <NAME> // // Created by <NAME> on 2014-04-10. // Copyright (c) 2014 <NAME>. All rights reserved. // /** * UIButton subclass used by `INDCollectionButtonCellView`. */ @interface INDCollectionButton : UIButton @end
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionVideoPlayerView.h
// // INDCollectionVideoPlayerView.h // <NAME> // // Created by <NAME> on 2014-04-10. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <AVFoundation/AVFoundation.h> /** * A view that plays a video using `AVPlayerLayer` and repeats it when playback * has ended. */ @interface INDCollectionVideoPla...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionVideoCellViewController.h
<filename>Indragie Karunaratne/Classes/INDCollectionVideoCellViewController.h // // INDCollectionVideoCellViewController.h // <NAME> // // Created by <NAME> on 2014-04-10. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "MNSHostedViewController.h" /** * View controller for collection view video ce...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionTimelineMilestoneCellViewController.h
// // INDCollectionTimelineMilestoneCellViewController.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "INDCollectionTextCellViewController.h" /** * View controller for timeline milestone cell. */ @interface INDCollectionTimelineMilestoneCellView...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionTimelineEndpointMarker.h
// // INDCollectionTimelineEndpointMarker.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // /** * Draws a marker that shows the start or end of a timeline. */ @interface INDCollectionTimelineEndpointMarker : UIView @end
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDMainCellViewController.h
<reponame>indragiek/WWDC-2014 // // INDMainCellViewController.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "MNSHostedViewController.h" @interface INDMainCellViewController : MNSHostedViewController @end
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionButtonCellView.h
// // INDCollectionButtonCellView.h // <NAME> // // Created by <NAME> on 2014-04-10. // Copyright (c) 2014 <NAME>. All rights reserved. // /** * Content view for a collection view cell that displays a button. */ @interface INDCollectionButtonCellView : UIView @property (nonatomic, weak) IBOutlet UIButton *butt...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDMainViewItem.h
// // INDMainViewItem.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Mantle/Mantle.h> /** * Model object class for the table view items on the main view. */ @interface INDMainViewItem : MTLModel <MTLJSONSerializing> /** * Title of the projec...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionVideoElement.h
<filename>Indragie Karunaratne/Classes/INDCollectionVideoElement.h // // INDCollectionVideoElement.h // <NAME> // // Created by <NAME> on 2014-04-10. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Mantle/Mantle.h> /** * Collection view element model representing a video. */ @interface INDCollec...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionImageCellViewController.h
<reponame>indragiek/WWDC-2014<filename>Indragie Karunaratne/Classes/INDCollectionImageCellViewController.h // // INDCollectionImageCellViewController.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "MNSHostedViewController.h" /** * View controller...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDMainViewFooterView.h
<filename>Indragie Karunaratne/Classes/INDMainViewFooterView.h // // INDMainViewFooterView.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @protocol INDMainViewFooterViewDelegate; /** * Footer for the table view containing social ...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDLineSpacingLabel.h
// // INDLineSpacingLabel.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "MNSMultilineLabel.h" /** * UILabel subclass with adjustable line spacing. */ @interface INDLineSpacingLabel : UILabel /** * Line spacing. * * Naming this property `l...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionTextCellView.h
// // INDCollectionTextCellView.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "INDLineSpacingLabel.h" /** * Content view for a collection view cell that displays attributed text. */ @interface INDCollectionTextCellView : UIView @property (nonat...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDUserInterfaceDefinitions.h
<reponame>indragiek/WWDC-2014<filename>Indragie Karunaratne/Classes/INDUserInterfaceDefinitions.h // // INDUserInterfaceDefinitions.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #ifndef __IND_UI_DEFINITIONS__ #define __IND_UI_DEFINITIONS__ ////////////// ...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDAppDelegate.h
<gh_stars>10-100 // // INDAppDelegate.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface INDAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionVideoCellView.h
// // INDCollectionVideoCellView.h // <NAME> // // Created by <NAME> on 2014-04-10. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "INDCollectionVideoPlayerView.h" /** * Content view for a collection view cell that displays a video. */ @interface INDCollectionVideoCellView : UIView /** * Inli...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDSonoraViewController.h
<gh_stars>10-100 // // INDSonoraViewController.h // <NAME> // // Created by <NAME> on 2014-04-11. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "INDStaticCollectionViewController.h" @interface INDSonoraViewController : INDStaticCollectionViewController @end
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionButtonElement.h
<gh_stars>10-100 // // INDCollectionButtonElement.h // <NAME> // // Created by <NAME> on 2014-04-10. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Mantle/Mantle.h> /** * Collection view element model representing a button that links to a URL. */ @interface INDCollectionButtonElement : MTLModel...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionTextCellViewController.h
<filename>Indragie Karunaratne/Classes/INDCollectionTextCellViewController.h<gh_stars>10-100 // // INDCollectionTextCellViewController.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "MNSHostedViewController.h" /** * View controller for collection...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDFlamingoViewController.h
// // INDFlamingoViewController.h // <NAME> // // Created by <NAME> on 2014-04-10. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "INDStaticCollectionViewController.h" /** * View controller for the Flamingo detail view. */ @interface INDFlamingoViewController : INDStaticCollectionViewController ...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDNavigationController.h
// // INDNavigationController.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface INDNavigationController : UINavigationController @end
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDJSONTableViewController.h
// // INDJSONTableViewController.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "MNSTableViewController.h" #import "MNSViewControllerRegistrar.h" /** * Table view controller driven by JSON files as the data source. */ @interface INDJSONTableView...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionTimelineFooterViewController.h
<gh_stars>10-100 // // INDCollectionTimelineFooterViewController.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "MNSHostedViewController.h" /** * View controller for a timeline footer. */ @interface INDCollectionTimelineFooterViewController : MN...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDImageNameToImageValueTransformer.h
<reponame>indragiek/WWDC-2014 // // INDImageNameToImageValueTransformer.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> extern NSString * const INDImageNameToImageValueTransformerName; /** * A value transformer that conv...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionTimelineFooterElement.h
// // INDCollectionTimelineFooterElement.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Mantle/Mantle.h> /** * Empty model object that represents the footer of a timeline. */ @interface INDCollectionTimelineFooterElement : MTLModel <MTLJSONSeri...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDCollectionImageCellView.h
// // INDCollectionImageCellView.h // <NAME> // // Created by <NAME> on 2014-04-09. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> /** * Content view for a collection view cell that displays an image. */ @interface INDCollectionImageCellView : UIView /** * Image view used to d...
indragiek/WWDC-2014
Indragie Karunaratne/Classes/INDSocialButton.h
// // INDSocialButton.h // <NAME> // // Created by <NAME> on 2014-04-07. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> /** * Custom button that shows a social service icon, name, and caret. */ @interface INDSocialButton : UIButton @end