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
#pragma unused(parameterName) |
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
#import "YourViewController.h" | |
#import <QuartzCore/QuartzCore.h> // required to modify the corner radius | |
//.....Setup your controller... | |
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
self.myView.layer.cornerRadius = 8; //add a corner radius to the UILabel | |
} |
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
var myModel = { | |
"foo": 1 | |
} | |
var newData = { | |
"foo": "newValue", | |
"bar": "baz" | |
} |
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
merge(myModel, newData); | |
// myModel's new value: | |
// { | |
// "foo": "newValue", // the "foo" attribute has a new value | |
// "bar": "baz" | |
// } |
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
fill(myModel, newData); | |
// myModel's new value: | |
// { | |
// "foo": 1, // the "foo" attribute was not modified | |
// "bar": "baz" | |
// } |
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
input[type="submit"], | |
input[type="reset"], | |
input[type="button"], | |
button, | |
textarea { | |
font-family: inherit; | |
-webkit-font-smoothing: inherit; | |
} |
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
from __future__ import print_function | |
// ...other dependencies... | |
try: | |
import requests | |
except ImportError: | |
print('You must install the "requests" package in order to use ' | |
'the sync writer: `pip install requests`') |
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
#import "YourViewController.h" | |
#import <QuartzCore/QuartzCore.h> //required to achieve corner radius | |
//.....Setup your controller... | |
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
//add a corner radius to the UILabel | |
self.label.layer.cornerRadius = 8; | |
} | |
//....the rest of your controller code goes here... |
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
alert( "hello world" ); |
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
var inputArray = []; | |
$('#listOfData').each( function(){ | |
inputArray.push( this.value ); | |
}); | |
$.post( 'yourServerPage.php', { | |
'data[]': inputArray | |
}, function( outputData ){ | |
$('#outputDiv').empty().append( outputData ); | |
}); |
OlderNewer