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
set -x LANGUAGE en_US.UTF-8 | |
set -x LANG en_US.UTF-8 | |
set -x LC_ALL en_US.UTF-8 | |
set -x LESSCHARSET utf-8 | |
# Dark terminal | |
set -Ux LSCOLORS gxfxbEaEBxxEhEhBaDaCaD | |
# Java Stuff | |
set -x JAVA_HOME (/usr/libexec/java_home -v 1.8) |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
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
extension URLRequest { | |
/// Internal helper function to escape double quotes | |
func curlEscapeQuotes(in string: String) -> String { | |
return string.replacingOccurrences(of: "\"", with: "\\\"") | |
} | |
/// Curl Command string | |
var curlCommand: String { | |
guard let url = url else { | |
return "# No URL found" |
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
// | |
// BinaryDelegate.swift | |
// BinaryResponse | |
// | |
// Based on Nathan Hazout's BinaryDelegate | |
// | |
// https://github.com/nasht00/MFPBinaryResponse/blob/master/ios/BinaryResponse/BinaryResponse/BinaryDelegate.swift | |
// | |
import UIKit |
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
#! /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 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 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 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 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 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: [ | |
{ |
NewerOlder