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
| #import <UIKit/UIKit.h> | |
| @interface ViewController : UIViewController | |
| @property IBOutlet UIImageView* imgView; | |
| @property NSArray* images; | |
| -(IBAction)propertyAnimation:(id)sender; | |
| -(IBAction)cellAnimation:(id)sender; |
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
| #import <UIKit/UIKit.h> | |
| @interface TempViewController : UIViewController | |
| @property(weak,nonatomic) IBOutlet UITextField* fahrenheit; | |
| @property(weak,nonatomic) IBOutlet UILabel* celsius; | |
| -(IBAction) convertToCelsius:(id)sender; | |
| @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
| @interface TTTViewController : UIViewController { | |
| UIImage* imgs[2]; | |
| } | |
| @property IBOutletCollection(UIButton) NSArray*board; | |
| @property IBOutlet UIImageView* currentPlayerView; | |
| @property int currentPlayer; | |
| @property boolean_t playing; | |
| -(IBAction)cellPressed:(id)sender; | |
| -(IBAction)restartGame:(id)sender; |
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
| retry_times(5,lambda{ || return 1/0;}) |
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
| bool accepts(string str) | |
| { | |
| return contains(F,delta_hat(q0,str)); | |
| } |
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 Dapper; | |
| namespace DapperCleanDemo.Controllers | |
| { | |
| public class PeopleController : ApiController | |
| { | |
| public IEnumerable<dynamic> GetResultById(string id) | |
| { | |
| using (var conn = new SqlConnection(@"Server=localhost\sqlexpress;Database=XmlTest;Trusted_Connection=True")) | |
| { |
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
| SELECT id,name, SkillsXml.query('/skills/skill[1]') | |
| FROM 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
| public static class MyExtensions | |
| { | |
| public static System.TimeSpan Months(this Int32 x) | |
| { | |
| return System.DateTime.Today.AddMonths(x) - System.DateTime.Today; | |
| } | |
| public static System.TimeSpan Years(this Int32 x) | |
| { | |
| return System.DateTime.Today.AddYears(x) - System.DateTime.Today; |
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
| <contacts> | |
| <contact id="1"> | |
| <firstName>Orlando</firstName> | |
| <lastName>Karam</lastName> | |
| </contact> | |
| <contact id="2"> | |
| <firstName>Lina</firstName> | |
| <lastName>Colli</lastName> | |
| </contact> | |
| </contacts> |
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 DFA[StateType] | |
| ( | |
| val Q:Set[StateType], | |
| val F:Set[StateType], | |
| val q0:StateType, | |
| val delta: (StateType,Char)=>StateType, | |
| val Sigma:Set[Char] | |
| ) | |
| { | |
| ... |