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
Show hidden characters
{ | |
"shell_cmd": "mvn clean compile", | |
"working_dir": "${project_path:${folder}}", | |
"variants": [ | |
{ | |
"name": "Run Tests", | |
"shell_cmd": "mvn test" | |
}, | |
{ | |
"name": "Run in Tomcat 7", |
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 java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
@Retention( RetentionPolicy.RUNTIME ) | |
@Target( { | |
java.lang.annotation.ElementType.METHOD | |
} ) | |
public @interface Repeat { | |
public abstract int times(); |
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 <Cocoa/Cocoa.h> | |
int main(int argc, char *argv[]) | |
{ | |
NSMutableArray *array = [NSMutableArray array]; | |
for (int i = 0; i < 5; i++) { | |
[array addObject:[^() { | |
NSLog(@"I have Value of %d", i); | |
} copy]]; | |
} |
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 <Cocoa/Cocoa.h> | |
int main(int argc, char *argv[]) | |
{ | |
int (^(^makeAdder)(int))(int) = ^(int toAdd) { | |
int (^fn)(int) = ^(int arg) { | |
return toAdd + arg; | |
}; | |
return fn; | |
}; |
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
#include <iostream> | |
#include <vector> | |
std::function<float(float)> converter_factory(std::string region) { | |
if (region == "US") { | |
return [] (float celsius) -> float { | |
return (celsius / 5 * 9 + 32); | |
}; | |
} | |
return [] (float fahrenheit) -> float { |
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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
int main(int argc, const char * argv[]) { | |
vector<function<void()>> functions; | |
for (int i = 0; i < 5; i++) { | |
functions.push_back([i] () { |
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
{ | |
"aliceblue":"#F0F8FF", | |
"antiquewhite":"#FAEBD7", | |
"aquamarine":"#7FFFD4", | |
"azure":"#F0FFFF", | |
"beige":"#F5F5DC", | |
"bisque":"#FFE4C4", | |
"black":"#000000", | |
"blanchedalmond":"#FFEBCD", | |
"blue":"#0000FF", |
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
[ | |
{ | |
"hex": "#EFDECD", | |
"name": "Almond", | |
"rgb": "(239, 222, 205)" | |
}, | |
{ | |
"hex": "#CD9575", | |
"name": "Antique Brass", | |
"rgb": "(205, 149, 117)" |
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
#!/usr/bin/python | |
# coding=utf-8 | |
# -*- encoding: utf-8 -*- | |
import sys, codecs, copy, commands; | |
sys.stdin = codecs.getreader('utf-8')(sys.stdin); | |
sys.stdout = codecs.getwriter('utf-8')(sys.stdout); | |
sys.stderr = codecs.getwriter('utf-8')(sys.stderr); |
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
#!/usr/bin/python | |
# coding=utf-8 | |
# -*- encoding: utf-8 -*- | |
import sys; | |
# À Bunifaziu si cunserva l'usu di una varietà di a lingua ligura [[Dialettu bunifazincu|bunifazinca]], un dialettu ghjinuvesu arcaicu chì currispondi à a parlata impurtata da i culoni à a fini di u XIIIimu seculu. | |
# Si stima chì u corsu sia parlatu in [[Corsica]] da circa 90/100.000 lucutori frà i 275.000 abitanti di l'isola, puru ch'elli sianu parechji frà quessi à esse di lingua materna francese (dati da una ricerca di l'INSEE di u 2004 [http://www.insee.fr/fr/insee_regions/corse/rfc/docs/ecoc1053.htm]), à quelli ci hè quantunque da aghjustà e pupulazione emigrate in [[Francia]] (par un tutale di 133.000 individui in Francia) è in altre nazione. | |
urls = []; |
NewerOlder