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
Forgotten what the $_SERVER variable contains? See below: | |
$_SERVER["COMSPEC"] "C:\windows\system32\cmd.exe" | |
$_SERVER["CONTENT_LENGTH"] "43" | |
$_SERVER["CONTENT_TYPE"] "application/x-www-form-urlencoded; charset=UTF-8" | |
$_SERVER["CONTEXT_DOCUMENT_ROOT"] "C:/xampp/htdocs" | |
$_SERVER["CONTEXT_PREFIX"] | |
$_SERVER["DOCUMENT_ROOT"] "C:/xampp/htdocs" | |
$_SERVER["GATEWAY_INTERFACE"] "CGI/1.1" |
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
// stripes.cpp : Defines the entry point for the console application. | |
// | |
// | |
// Magick++ demo to generate a simple text button | |
// | |
// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2003 | |
// | |
#define _CRT_SECURE_NO_WARNINGS | |
#include <Magick++.h> | |
#include <string> |
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
namespace rapidxml { | |
//I even managed to create it as a template, though I don't understand templates at all | |
template <class T> | |
vector<xml_node<T>*> xml_node_get_children(xml_node<T>* node, const char* filter = NULL) { | |
//This will be returned | |
vector<xml_node<T>*> children; | |
for (xml_node<T> *child = node->first_node(); child; child = child->next_sibling()) | |
{ | |
//If filter is ON, only tag name EXACT MATCHES are included | |
if(filter==NULL || strcmp(filter, child->name())==0) |
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
/* License: | |
* Open source ftw. I doubt anybody would actually like to use this file. | |
* But if you want, use it, change it or share it under any license you like. | |
*/ | |
package autoclick; | |
//Comment this out if you don't have the library | |
import com.sun.jna.platform.win32.WinDef; | |
//Used for exporting rect class as normal rectangle | |
import java.awt.Rectangle; |
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
{ | |
"id":"0000", | |
"message":"TEXT", | |
"badWordReplacements":null, | |
"user":{ | |
"id":"USER_ID", | |
"name":"SUMMONER_NAME", | |
"lolSummonerLevel":"LEVEL (0-30)", | |
"lolProfileIcon":"PROFILE_ICON_ID", | |
"realm":"NA/EUNE/EUW/OCE", |
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
const readline = require('readline'); | |
var oldCreateIface = readline.createInterface; | |
readline.createInterface = function() { | |
var iface = oldCreateIface.apply(this, arguments); | |
var oldQuestion = iface.question; | |
iface.question = function(question) { | |
var promise = Promise.defer(); | |
oldQuestion.call(this, question, (result)=>{ |
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
toggle=0 | |
F12:: | |
If (toggle := !toggle) | |
SetTimer, Timer, -1 | |
return | |
timer: | |
while toggle | |
{ |
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
@echo off | |
set FILETOZIP=%1 | |
echo Selected file: %FILETOZIP% | |
set TEMPDIR=TMP | |
echo Creating temporary file directory .\%TEMPDIR% | |
mkdir %TEMPDIR% | |
copy %FILETOZIP% %TEMPDIR%\main.c |
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
# Homework tester script | |
# ---------------------- | |
# This script will automatically (try to) test | |
# IO of your homework. | |
# | |
# Requirements: | |
# Python 2.7 In order to use Python 3, change `raw_input` to `input` | |
# gcc compiler | |
# | |
# Parameters: |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, graph = require('fbgraph'); | |
var app = express(); | |
var server = require("http").createServer(app); | |
OlderNewer