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 <conio.h> // For C stuff | |
#include <ctime> // For the current time | |
#include <fstream> // Needed for the file stream | |
#include <iostream> // Needed for input and output | |
#include <winsock2.h> // Needed for socket connection | |
using namespace std; | |
#define SERVER_PORT 12345 // Server port to connect on | |
#define BUF_SIZE 4096 // Block transfer size |
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.zackehh.example; | |
import java.net.URI; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.impl.client.DefaultHttpClient; | |
import org.apache.http.params.BasicHttpParams; | |
import org.apache.http.params.HttpConnectionParams; | |
import org.apache.http.params.HttpParams; |
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.zackehh.example; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import android.content.Context; |
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.zackehh.example; | |
import com.zackehh.example.MinimalBrowser; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.text.Layout; | |
import android.text.Spannable; | |
import android.text.method.MovementMethod; | |
import android.text.style.URLSpan; |
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.zackehh.example; | |
import android.annotation.SuppressLint; | |
import android.app.Activity; | |
import android.app.ProgressDialog; | |
import android.content.Context; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
import android.os.Bundle; | |
import android.view.ContextThemeWrapper; |
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
var fs = require('fs'), | |
Mocha = require("mocha"), | |
path = require('path'); | |
// Our Mocha runner | |
var mocha = new Mocha({ | |
ui:"bdd", | |
reporter:"spec", | |
timeout:60000, | |
slow:10000 |
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.zackehh.example; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
/** | |
* A Thread extension dedicated to redirecting InputStreams | |
* to given OutputStreams. Feeds into the given OutputStream | |
* during the lifetime of this Thread. |
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.zackehh.example; | |
import com.fasterxml.jackson.databind.JsonNode; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.node.ArrayNode; | |
import java.util.EnumSet; | |
import java.util.Set; | |
import java.util.function.BiConsumer; | |
import java.util.function.BinaryOperator; |
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
exports.parse = function parse(mdown) { | |
console.log('<p align="center" style="margin: 2em auto auto auto; width:70%;">'); | |
mdown.match(/\[\!.*?\)\].*?\)/g).forEach(function (badge) { | |
var segments = badge.match(/\[!\[(.*?)\]\((.*?)\)\]\((.*?)\)/); | |
var altText = segments[1]; | |
var svgPath = segments[2]; | |
var urlHref = segments[3]; | |
console.log(` <a href="${urlHref}">`); |
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
module.exports = { | |
image: 'elasticsearch', | |
binds: [ | |
'$DOCKSERV_DATA/elasticsearch/data:/usr/share/elasticsearch/data' | |
], | |
ports: [ | |
'9200', | |
'9300' | |
] | |
}; |
OlderNewer