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
// NSString to URL Encode | |
NSString *originalString = [NSString stringWithFormat:@"Hallo Welt"]; | |
NSString *stringURLEncoded = [originalString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; |
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
//Go to Segue | |
[self performSegueWithIdentifier: @"nameOfYourSegueIdentifier" sender: self]; |
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
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | |
[defaults setObject:variable forKey:@"myVar"]; | |
[defaults synchronize]; |
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
/*Database replace bad characters to german characters (SQL)*/ | |
/*replace "pages" with yout table and "title" with your field*/ | |
UPDATE pages SET title=replace(title,'ß', 'ß'), title=replace(title, 'ä', 'ä'), title=replace(title, 'ü', 'ü'), title=replace(title, 'ö', 'ö'), title=replace(title, 'Ä', 'Ä'), title=replace(title, 'Ãœ', 'Ü'), title=replace(title, 'Ö', 'Ö'), title=replace(title, '€', '€'), title=replace(title, '–', '–'), title=replace(title, '“', '“'), title=replace(title, '„', '„'), title=replace(title, '§', '§'); |
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
protected function errorAction() { | |
echo 'ErrorAction'; | |
$this->clearCacheOnError(); | |
if ($this->configurationManager->isFeatureEnabled('rewrittenPropertyMapper')) { | |
echo 'Rewritten Property Mapper'; | |
echo '<pre>'; | |
foreach ($this->arguments->getValidationResults()->getFlattenedErrors() as $propertyPath => $errors) { | |
foreach ($errors as $error) { | |
$message .= 'Error for ' . $propertyPath . ': ' . $error->render() . |
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
$(document).ready(function() { | |
$(".tabLink").each(function(){ | |
$(this).click(function(){ | |
tabeId = $(this).attr('id'); | |
$(".tabLink").removeClass("activeLink"); | |
$(this).addClass("activeLink"); | |
$(".tabcontent").addClass("hide"); | |
$("#"+tabeId+"-1").removeClass("hide"); | |
return false; | |
}); |
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
/* Border box with shadows */ | |
div { | |
border-radius: 3px; | |
box-shadow: 0 1px 5px #888; | |
} | |
/* Another 4 sides box shadow */ | |
div { | |
border-radius: 6px; | |
box-shadow: 0px 0px 8px 4px #CCCCCC; |
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
/* CSS in order to center an element (with position absolute) in a container: */ | |
.centeredIcon { | |
background: url("http://www.google.com/favicon.ico") no-repeat transparent; | |
width:64px; | |
height:64px; | |
position:absolute; | |
left:50%; | |
top:50%; | |
margin-left:-32px; /* half of the width */ |
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
FLOOR( 1 + RAND( ) *10 ) |
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
//DataTables Table plug-in for jQuery: http://www.datatables.net/ |
OlderNewer