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
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac | |
umask 022 | |
export LC_ALL=en_US.UTF-8 | |
# don't put duplicate lines or lines starting with space in the history. |
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
#include <string> | |
#include <atlbase.h> | |
#include <imapi2fs.h> | |
void create_iso( std::wstring_view src, std::wstring_view iso_path ) | |
{ | |
HRESULT hr; | |
IFileSystemImage* fsimg; | |
IFsiDirectoryItem* fsdir; | |
IFileSystemImageResult* fsresult; |
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
'use strict' | |
const sprintf = require( 'sprintf-js' ).sprintf | |
const moment = require( 'moment' ) | |
const unicode_generalCategory = require( 'unicode-13.0.0/General_Category' ) | |
const charCategoryMultipliers = [ | |
0, // none | |
1, // latin letters |
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
#pragma once | |
#include <cstdint> | |
#include <intrin.h> | |
#define nmath_avx_align __declspec(align(32)) | |
namespace nmath { | |
using Real = double; // tmp |
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
{ | |
"protoss" : | |
{ | |
"Gateway" : | |
{ | |
"builds" : | |
[ | |
{ | |
"ability" : "GatewayTrain", | |
"abilityCommand" : "Train1", |
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
#!/bin/sh | |
sudo updatedb | |
locate "node_modules/babelcli" | |
locate "node_modules/cross-env.js" | |
locate "node_modules/crossenv" | |
locate "node_modules/d3.js" | |
locate "node_modules/fabric-js" | |
locate "node_modules/ffmepg" | |
locate "node_modules/gruntcli" | |
locate "node_modules/http-proxy.js" |
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
var shelly = require( "shelly" ); | |
var childProcess = require( "child_process" ); | |
var typist = require( "typist" ); | |
var moment = require( "moment" ); | |
var gm = require( "gm" ); | |
var Q = require( "q" ); | |
var im = gm.subClass({ imageMagick: true }); | |
module.exports = { |
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
// for license see license.txt | |
/* Netcat 1.00 951010 | |
A damn useful little "backend" utility begun 950915 or thereabouts, | |
as *Hobbit*'s first real stab at some sockets programming. Something that | |
should have and indeed may have existed ten years ago, but never became a | |
standard Unix utility. IMHO, "nc" could take its place right next to cat, | |
cp, rm, mv, dd, ls, and all those other cryptic and Unix-like things. |
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
//! \class ScopedSRWLock | |
//! Automation for scoped acquisition and release of an SRWLOCK. | |
//! \warning Lock must be initialized in advance! | |
class ScopedSRWLock: boost::noncopyable | |
{ | |
protected: | |
PSRWLOCK mLock; | |
bool mExclusive; | |
public: |
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
//! \class SafeHandle | |
//! Unique_ptr wrapper for WinAPI handles. | |
class SafeHandle: public std::unique_ptr<std::remove_pointer<HANDLE>::type,void(*)( HANDLE )> | |
{ | |
public: | |
SafeHandle( HANDLE handle ): unique_ptr( handle, &SafeHandle::close ) | |
{ | |
} | |
operator HANDLE() |
NewerOlder