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
[ | |
{ "keys": ["f12"], "command": "reindent"} //auto-indent F12 | |
] |
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
adapter: s3 | |
bucket_name: queen-fantasia | |
access_key_id: my_key_id | |
secret_access_key: my_secret_access_key | |
host: s3-sa-east-1.amazonaws.com | |
exclude: | |
- .gitignore | |
- dandelion.yml |
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
- This will be commented and must be uncommented to load the rewrite module | |
LoadModule rewrite_module modules/mod_rewrite.so | |
- This block will be different, making impossible to AllowOverride, chage thise lines for the lones below | |
# | |
# Each directory to which Apache has access can be configured with respect | |
# to which services and features are allowed and/or disabled in that | |
# directory (and its subdirectories). | |
# | |
# First, we configure the "default" to be a very restrictive set of |
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
-startup | |
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417 | |
-product | |
org.eclipse.epp.package.jee.product | |
--launcher.defaultAction | |
openFile | |
-showsplash | |
org.eclipse.platform |
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
computed: { | |
filteredThings () { | |
return this.things | |
.filter(contains(this.foo)) | |
.sort(by(thing => thing.bar)) | |
.slice(0, 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
public class Boxes { | |
public static int minimalNumberOfBoxes(int products, int availableLargeBoxes, int availableSmallBoxes) { | |
int smallBoxes = products % (availableLargeBoxes * 5); | |
int bigBoxes = products - (smallBoxes * 5); | |
if (((availableLargeBoxes * 5) + availableSmallBoxes) < products) { | |
return -1; | |
} | |
return (bigBoxes + smallBoxes) * -1; |
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
{ | |
"alg": "HS256", | |
"typ": "JWT" | |
} |
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
{ | |
"sub": "1337", | |
"name": "Lucas Bleme", | |
"admin": 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
HMACSHA256( | |
base64UrlEncode(header) + "." + | |
base64UrlEncode(payload), | |
secret) |
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
package com.jwtme; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
@SpringBootApplication | |
@RestController |
OlderNewer