- Un cartón de huevos (30 huevos)
- Cuatro latas grandes de leche condensada (397 gr/14 onzas por lata)
- Una botella de ron (750 ml)
- Ralladura fina de la concha de dos limones pequeños.
This file contains 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
// in form InitializeComponent(), or in the form's constructor | |
this.cboBox.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.cboBox_MouseWheel); | |
// event implementation | |
private void cboBox_MouseWheel(object sender, System.Windows.Forms.MouseEventArgs e) | |
{ | |
HandledMouseEventArgs mouseWheelEvent = (HandledMouseEventArgs)e; | |
mouseWheelEvent.Handled = true; | |
} |
This file contains 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
#define FLT(x) [NSNumber numberWithFloat:x] | |
// use as | |
NSArray *keys = [NSArray arrayWithObjects: FLT(-2.0), FLT(-1.85), FLT(-1.75), nil]; |
This file contains 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
// BEGIN - create your argument class, subclass of EventArgs | |
public class ProgressEventArgs : EventArgs | |
{ | |
public int Min; | |
public int Progress; | |
public int Max; | |
public string Message; | |
public ProgressEventArgs(int min, int progress, int max, string msg) | |
{ | |
if (progress > max) |
This file contains 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
//Source http://stackoverflow.com/questions/4538598/drawing-line-on-touches-moved-in-cocos2d | |
//CCLayer | |
-(void) ccTouchesMoved:(NSSet *)touched withEvent:(UIEvent *)event | |
{ | |
UITouch *touch = [touched anyObject]; | |
CGPoint currentTouchArea = [touch locationInView:[touch view] ]; | |
CGPoint lastTouchArea = [touch previousLocationInView:[touch view]]; | |
currentTouchArea = [[CCDirector sharedDirector] convertToGL:currentTouchArea]; |
This file contains 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
#define RADIANS_TO_DEGREES(__ANGLE__) ((__ANGLE__) * 57.29577951f) // PI * 180 | |
-(float32) getRotatingAngle : (CGPoint)firstPoint secondPoint:(CGPoint)secondPoint | |
{ | |
float dx = firstPoint.x - secondPoint.x; | |
float dy = firstPoint.y - secondPoint.y; | |
float angle = RADIANS_TO_DEGREES(atan2(dy, dx)); | |
return angle; | |
} |
This file contains 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
NSURL *originalFileName = [NSURL alloc]; | |
NSURL *RecordingPath =[NSURL fileURLWithPath:[appDelegate.RecordingPath stringByAppendingPathComponent: | |
[NSString stringWithFormat:@"RecordingFile.wav"]]]; | |
NSLog(@"LocalRecoding Path :%@",RecordingPath); | |
originalFileName=RecordingPath; | |
NSURL *temporaryFileName = [NSURL alloc]; |
This file contains 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+Additions.h | |
// Sparrow | |
// | |
// Created by Shilo White on 10/16/11. | |
// Copyright 2011 Shilocity Productions. All rights reserved. | |
// | |
#define COLOR_PART_RED(color) (((color) >> 16) & 0xff) | |
#define COLOR_PART_GREEN(color) (((color) >> 8) & 0xff) |
This file contains 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
/* | |
GrabControlBitmapImage | |
Created on 2013/05/28 by Afrael Ortiz | |
Grabs the content of a Windows Control and returns its bitmap image | |
-- "do whatever you want with this" license -- | |
*/ | |
public static Bitmap GrabControlBitmapImage(Control control) | |
{ | |
var controlBounds = control.Bounds; |
This file contains 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
textViewer.SelectionStart = textViewer.Text.Length; | |
textViewer.ScrollToCaret(); |
OlderNewer