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
while($true) { | |
Get-Process | ? {$_.StartTime -gt (Get-Date).AddMinutes(-1)} | Select-Object ProcessName,Description,Path >> out.txt | |
sleep 0.01 | |
} |
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> | |
#include <iomanip> | |
#include <fstream> | |
#include <sstream> | |
#include <string> | |
#include <vector> | |
#include <unordered_map> | |
#include <sys/time.h> | |
// We specify the total number of systems explicitly so that we can initialize data structures before reading in the whole csv file. |
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 buffer = document.createElement('canvas'); | |
var bufContext = buffer.getContext("2d"); | |
buffer.width = 60; | |
buffer.height = 20; | |
bufContext.fillStyle = "#FFFFFF"; | |
bufContext.fillRect(0, 0, 60, 20); | |
bufContext.textBaseline = "top"; |
This file has been truncated, but you can view the full file.
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
CHEATENGINE `êcžö áÏ Ð|¤ö generic unknown error KÊžö Px¤ö ¤ö P~¤ö |¤ö °|¤ö Ð|¤ö iostream iostream stream error KÊžö Px¤ö 0¤ö ~¤ö `|¤ö °|¤ö Ð|¤ö system invalid string position string too long specularPowers bool aiEditable.actionSettings.taunt.tauntMinInterval float * aiConstants.physics.clipMask.shotClip probability int maxLookAngles idVec2 weaponVars.burstWaitTime int swapParticle float bool float onSprinting * idAngles int staticSpecularVector idDeclParticle bool aiEditable.movement.usesSmoothAnimSearch int aiEditable.targeting.spottedMax idVec3 specularScales bool aiEditable.actionSettings.taunt.tauntMaxInterval float int aiConstants.physics.clipMask.ikClip int minIdleTime int howLongToHold idVec2 weaponVars.randomness destroyParticle float bool onShooting int additiveBlendLight * idDeclParticle bool aiEditable.movement.usesSmoothAnimCombat * aiEditable.ta |
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
function MyClass () { | |
var privateVariable = 5; | |
var privateMethod = function () { | |
return privateVariable; | |
}; | |
this.publicMethod = function () { | |
return privateMethod(); | |
} | |
} |
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
P r o g r a m m i n g - a - M o d e - F i n d e r | |
-a guide to programming a mode finder- | |
By: Brian Gordon | |
____________ | |
/Introduction\_________________________________ | |
| | | |
|This guide will outline the technique I found | | |
|is the best way to determine a mode from a | | |
|set of data. It includes most of the source | | |
|code from the original program, then explains | |
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
Consider the subset of regular expressions that only use lowercase letters, parentheses, and the Kleene star *. | |
The presence of a Kleene star means that the preceding parenthesized phrase can appear zero or more times. | |
Parentheses are only valid around the text preceding a Kleene star. Write a program that takes such a regular | |
expression and a string and determines whether or not that entire string matches the regular expression. | |
For example, the string on the left matches the regular expression on the right: | |
hello hello | |
testtest (test)* | |
helllllllo he(l)*lo |
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
interface Condiment {} | |
interface Ketchup extends ISuper {} | |
// This is a covariant interface | |
interface Kitchen<T extends Condiment> { | |
public void squirtCondiment(T covariant); | |
} | |
// This implements the Kitchen interface even though the implementation refers specifically to Ketchup in the type signature | |
class KetchupKitchen implements Kitchen<Ketchup> { |
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
/** | |
* Add a package name prefix if the name is not absolute Remove leading "/" | |
* if name is absolute | |
*/ | |
private String resolveName(String name) { | |
if (name == null) { | |
return name; | |
} | |
if (!name.startsWith("/")) { | |
Class<?> c = this; |
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 n = 40; | |
// Each row has exactly one queen. We have to determine which column to place each queen in. | |
var board = []; | |
function initBoard() { | |
// Put one queen in each row | |
board = []; | |
for(var row = 0; row < n; row++) { | |
board[row] = []; |