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
| package com.company.project.filter; | |
| import java.io.IOException; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; | |
| import javax.servlet.Filter; | |
| import javax.servlet.FilterChain; | |
| import javax.servlet.FilterConfig; | |
| import javax.servlet.ServletException; |
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
| package com.company.project.util; | |
| import java.io.StringReader; | |
| import java.io.StringWriter; | |
| import javax.json.Json; | |
| import javax.json.JsonObject; | |
| import javax.json.JsonReader; | |
| import javax.json.JsonWriter; |
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
| JsonObject json = Json.createObjectBuilder() | |
| .add("keyString", "string") | |
| .add("keyBoolean", true) | |
| .add("keyArraySimple", Json.createArrayBuilder() | |
| .add(1) | |
| .add(11) | |
| .add(111).build()) | |
| .add("keyArrayObject", Json.createArrayBuilder() | |
| .add(Json.createObjectBuilder() | |
| .add("lang", "ja") |
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
| { | |
| keyString: "String", | |
| keyBoolean: true, | |
| keyArraySimple: [ | |
| 1, | |
| 11, | |
| 111 | |
| ], | |
| keyArrayObject: [ | |
| { |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Launch index.html", | |
| "type": "chrome", | |
| "request": "launch", | |
| "file": "${workspaceRoot}/index.html", | |
| "userDataDir": "${workspaceRoot}/out/chrome", | |
| "runtimeExecutable": "/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary" |
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
| <server description="Liberty beta"> | |
| <featureManager> | |
| <!-- To enable Swagger --> | |
| <feature>apiDiscovery-1.0</feature> | |
| <!-- Default stuff --> | |
| <feature>webProfile-7.0</feature> | |
| <feature>adminCenter-1.0</feature> | |
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 <stdio.h> | |
| #include <stdlib.h> | |
| int main(void) { | |
| printf("GIT_SSL_NO_VERIFY: %s\n", getenv("GIT_SSL_NO_VERIFY")); | |
| if (getenv("GIT_SSL_NO_VERIFY")) | |
| printf("evaluated as TRUE\n"); | |
| else | |
| printf("evaluated as FALSE\n"); |
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
| package com.ibm.sample; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| public class Sample { |
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
| #! /bin/bash | |
| # Usage: | |
| # Place this file somewhere in your PATH (and make sure it is executable) then call it like `git lint` | |
| # Check swiftlint | |
| command -v swiftlint >/dev/null 2>&1 || { echo >&2 "git-lint requires swiftlint but it's not installed. Aborting."; exit 1; } | |
| # Create a temp file | |
| temp_file=$(mktemp) |
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
| // | |
| // BinaryDelegate.swift | |
| // BinaryResponse | |
| // | |
| // Based on Nathan Hazout's BinaryDelegate | |
| // | |
| // https://github.com/nasht00/MFPBinaryResponse/blob/master/ios/BinaryResponse/BinaryResponse/BinaryDelegate.swift | |
| // | |
| import UIKit |