Skip to content

Instantly share code, notes, and snippets.

@Oliviergg
Oliviergg / gist:2500942
Created April 26, 2012 16:52
Intégrer des pages web dans un controller iOs
- (void)requestDidFailed:(ASIHTTPRequest *)request {
// La création de compte a échoué. Afficher un message d'erreur
}
- (void)requestDidSucceed:(ASIHTTPRequest *)request {
NSData* data=[request.responseString dataUsingEncoding:NSUTF8StringEncoding];
NSDictionary *json = [[CJSONDeserializer deserializer] deserialize:data error:NULL];
// cacher la bulle d'attente
[webView stringByEvaluatingJavaScriptFromString:@"hideWaiting()"];
NSDictionary *lastHTTPBody = request.userInfo;
@Oliviergg
Oliviergg / es.sh
Created January 25, 2013 10:10 — forked from kajic/es.sh
cd ~
sudo apt-get update
sudo apt-get install curl python-software-properties -y
sudo apt-get install openjdk-6-jre-headless
curl -L http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.2.tar.gz | tar -xz
sudo mv elasticsearch-* /usr/local/share/elasticsearch
curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
sudo mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/
rm -Rf *servicewrapper*
/*
For General Icons: <i class="general foundicon-[icon-name]"></i>
For Social Icons: <i class="social foundicon-[icon-name]"></i>
For Accessibility Icons: <i class="accessibility foundicon-[icon-name]"></i>
For General Enclosed Icons: <i class="enclosed foundicon-[icon-name]"></i>
*/
/* global foundicon styles */
[class*="foundicon-"] {