Skip to content

Instantly share code, notes, and snippets.

View binki's full-sized avatar

Nathan Phillip Brink binki

View GitHub Profile
-*- mode: compilation; default-directory: "~/Documents/Visual Studio 2015/Projects/ArrayThingError/ArrayThingError/" -*-
Compilation started at Wed May 13 19:07:40
bash -c "for m in *akefile; do break; done; if [[ ${m} != \"*akefile\" ]]; then make; else set -o pipefail; 'c:/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe' //m; fi"
Microsoft (R) Build Engine version 14.0.22823.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 2015-05-13 19:07:40.
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.Net.CoreRuntime.targets (64,11)" does not exist in the project, and will be ignored.
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (75,11)" does not exist in the project, and will be ignored.
var compareNonColl, compareAscii, compareLength;
<a href="javascript:void(window.open('https://pushbullet.com/push/link?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)))">Push</a></a>
<!-- Source: http://pastebin.com/183UqMc1 -->
@binki
binki / gist:9236c1cab32c9409c97e
Created February 13, 2015 04:52
win32 java-1.8 default heap size
C:\Users\NathanPhillip>java -showversion -XshowSettings:vm
VM settings:
Max. Heap Size (Estimated): 247.50M
Ergonomics Machine Class: client
Using VM: Java HotSpot(TM) Client VM
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode)
@binki
binki / output
Created January 16, 2015 19:20
Returning 0 rows does not always mean NULL…
(1 row(s) affected)
Id Name
----------- ----
1 asdf
(1 row(s) affected)
x
------------
Load(128)=00:00:00.0611875
LoadParallel(128)=00:00:00.0285670
LoadAsync(128)=00:00:00.0378507
LoadAsyncParallel(128)=00:00:00.0404540
Load(1024)=00:00:00.3576118
LoadParallel(1024)=00:00:00.1329359
LoadAsync(1024)=00:00:00.1684256
LoadAsyncParallel(1024)=00:00:00.2744572
<Import Project="Neko2k.RandomBuildString.targets"/>
@binki
binki / output.txt
Last active August 29, 2015 14:09
Selecting multiple sublists that compose a more complex object in T-SQL
(5 row(s) affected)
Id Name Network Good
----------- --------- -------------- -----------
1 honestbot anarchyirc.com 0
2 derpbot anarchyirc.com 1
3 logbot anarchyirc.com 1
4 goat anarchyirc.com 0
5 CHANFIX efnet.org 1
#include <sstream>
#include <iostream>
int main(int argc, const char *const argv [])
{
std::stringstream ss;
ss.precision(2);
int rounded_value = 4;
ss << std::fixed << (double)rounded_value;
std::string s = ss.str();
>>> def is_int(x):
... try:
... int(x)
... return True
... except:
... pass
... return False
...
>>> [int(x) if is_int(x) else x for x in 'asdf asdf 23'.split(' ')]
['asdf', 'asdf', 23]