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 <iostream> | |
using namespace std; | |
int length, width, area; | |
void welcomeMessage() | |
{ | |
cout << "This program was designed to calculate the area of a triangle.\n" << endl; | |
} |
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 #include statement was automatically added by the Particle IDE. | |
#include <MCP9808.h> | |
int MAX_DISTANCE = 200; | |
int PING = D6; | |
int RED = A2; | |
int GREEN = A3; | |
MCP9808 mcp = MCP9808(); |
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
SELECT TargetTable.* | |
FROM FT_SEARCH_DATA('called', 0, 0) SearchData, TEST TargetTable | |
WHERE TargetTable.ID=SearchData.KEYS[0] | |
AND SearchData.TABLE='TEST' |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net.Sockets; | |
using System.Net; | |
using System.Reflection; | |
using System.IO; | |
using DOL.GS; |
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.arguments.addListener(new COMStringSetter(link::SetArguments)); | |
this.path.addListener(new COMStringSetter(link::SetPath)); | |
this.title.addListener(new COMPropertySetter<>(PKEY.Title, propertyStore::setString)); | |
this.toolTip.addListener(new COMStringSetter(link::SetDescription)); | |
this.workingDirectory.addListener(new COMStringSetter(link::SetWorkingDirectory)); |
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
using PID; | |
using ns0; | |
namespace ns2 | |
{ | |
/// <summary> | |
/// Class10 | |
/// </summary> | |
internal class EncryptionTogglePatcher : IFindAndReplaceSignature | |
{ |
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 spark; | |
import org.eclipse.jetty.servlet.ServletContextHandler; | |
public class WebSocketExample | |
{ | |
public static void main(String[] args) | |
{ | |
setupSpark(); | |
Spark.get("/", (request, response) -> "Hello"); |
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
app.use('/api', sleep.createEndpoint( | |
[ | |
{ | |
model: db.Project, | |
options: { | |
walk_depth: 3 | |
}, | |
routes: { | |
get: [ | |
Sleep.Scaffolding.Pagination |
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
app.post('/submit', function(req, res) { | |
var cdOpts = { | |
maxFilesSize: app.nconf.get("submit_file_byte_limit"), // This is 2 MB | |
autoFields: true, | |
autoFiles: true, | |
uploadDir: "./minidumps" | |
}; | |
var form = new multiparty.Form(cdOpts); |
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
template <typename ReturnType, typename... ArgumentTypes> | |
struct FunctionGear | |
{ | |
typedef std::function<ReturnType(ArgumentTypes...)> NativeFunction; | |
FunctionGear(NativeFunction nf) : mNativeFunction(nf){} | |
void Invoke(const v8::FunctionCallbackInfo<v8::Value> args) | |
{ | |
size_t currentArgumentIndex = args.Length() - 1; |