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.Net.NetworkInformation; | |
using System.Linq; | |
namespace Test { | |
// Retrieve and output MAC addresses for all network interfaces of local machine | |
public class Program { | |
static void Main() | |
{ |
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
cscript zip.vbs zip_file.zip file1.ext file2.ext file3.ext |
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
<?xml version="1.0"?> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="html"/> | |
<xsl:template match="/"> | |
<!--link rel="stylesheet" href="test2html.css" type="text/css" /--> | |
<html> | |
<style> |
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
Possible invocation methods: | |
- Command line console output: | |
cscript test.js | |
- Output in message box: | |
wscript test.js | |
- or, just double click |
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.IO; | |
using System.Xml.Linq; | |
namespace xml_struct | |
{ | |
//----------------------------------------------------------------------- | |
class Program |
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
void | |
search_and_replace( std::string& value, std::string const& search, | |
std::string const& replace ) | |
{ | |
std::string::size_type next; | |
for ( next = value.find( search ); // Try and find the first match | |
next != std::string::npos; // next is npos if nothing was found | |
next = value.find( search, next ) // search for the next match starting after | |
// the last match that was 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
The whole solution compilation: | |
msbuild _project_.sln /t:Rebuild /p:configuration="Release" | |
Particular project compilation: | |
msbuild _project_.vcxproj /t:Rebuild /p:project="_project_" /p:platform="Win32" /p:configuration="Release" |
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
import javax.xml.transform.*; | |
import javax.xml.XMLConstants; | |
import javax.xml.transform.stream.StreamResult; | |
import javax.xml.transform.stream.StreamSource; | |
import java.io.File; | |
public class XsltTransform { | |
public static void main(String[] args) throws TransformerException { | |
Source xslt = new StreamSource(new File(args[0])); | |
Source xml = new StreamSource(new File(args[1])); |
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
#ifdef _MSC_VER | |
#define _SCL_SECURE_NO_WARNINGS | |
#define _CRT_SECURE_NO_WARNINGS | |
#endif | |
#include <string> | |
#include <sstream> | |
#include <string.h> | |
#include "DllTest.h" |
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 <windows.h> | |
class HPTimer | |
{ | |
public: | |
HPTimer( std::string name ) : total(0.0), name_(name) | |
{ | |
} | |
void reset() |
OlderNewer