Skip to content

Instantly share code, notes, and snippets.

>>>eNp1UjtLA0EQnjUeiREkSBpBYoq0Z6EWFnK3iqAi+B/yuGAgy
YVLUhgLr0ghItjYJI3BMoJWFoJgwEZBwUchdpFYWFjEB2IXd26zd
0fUgZn7duab1+0CDIMMXNSDel319cf1aBrApAANS/1xPZfTDFk3N
ABquwfiRjGhyXoqjWk2WctqmTU5Fs0zsqkK9aUMPcsrNGyulC/oW
eYBu6ZUMDQtz+uZCiYOFo1oNlXMYC7zK4IJ5PZuq2KWQ4Da2YBwp
4PKUJNVRAVicibzCZHi6VQyCRCeBajNWSRC1oOHC0+lXZVwzjjtg
nbX04gJz5IAK/TfUESAKVedSUs+XIA3LbAWXZaPOoAHyxgkZPHot
Pr+UFLI22pr8/j7WXE8QLy4Qp9tqhWUE7EKiJpNtRt6VMn1FcqrS
iTMCKKh08w0lj1AAkMM1baZCY+CGE0RZYKUJC35Epu0BLhXe/dgP
2IGi4fQXKCxGtqTEQ7pDiV0TERHHArLnwD3DAlnw0vR9tzVv2eQ3
@zeroef
zeroef / gist:7fe736c8924bc79fd3dd39a74f775e1d
Created March 1, 2019 17:36
linq pad extension method
void Main()
{
// Write code to test your extensions here. Press F5 to compile and run.
}
public static class MyExtensions
{
// Write custom extension methods here. They will be available to all queries.
private static readonly Dictionary<Type, string> TypeAliases = new Dictionary<Type, string> {
{ typeof(int), "int" },
@zeroef
zeroef / key.md
Created February 27, 2019 23:54
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@zeroef
zeroef / TestFile.txt
Created February 14, 2019 19:12
hey kevin
This is our test file!
//Case row click handler
$(document).on('click', '.case-row td:not(input[type=checkbox])', function (e) {
//If row click is on checkbox (case transfer), ignore the click event and flip the checkbox state
if ($(event.target).is('input[type=checkbox]')) { return; }
e.preventDefault();
var xref = $(this).closest('tr').attr('id');
var hiddenControl = document.getElementById("<%=hCaseClicked.ClientID%>");
@zeroef
zeroef / vb script
Last active February 1, 2017 17:51
'Are you sure you want to disable errors?
'On Error Resume Next
Sub SaveFile(rootFolder, voterId, counter, imageData)
Dim blobSigFileName
If counter = 0 Then
blobSigFileName = rootFolder & "\" & voterId & ".tif"
Else
blobSigFileName = rootFolder & "\" & voterId & "-" & counter & ".tif"
qData = [{'id':'73','foo':'bar'},{'id':'45','foo':'bar'}, etc.]
qData = [<%=QuestionjScript%>];
function setHelp(int questionId){
var result = $.grep(qData, function(e){ return e.id == questionId; });
if (result.length == 0) {
// not found
} else if (result.length == 1) {
public enum QuestionType
{
Radio = 1,
DropDown = 2,
Textbox = 3,
Checkbox = 4
}
public class AnswerOptions
{
echo "you suck"
sleep 5000
<div class="col-sm-4">
<!--Warning Panel-->
<!--===================================================-->
<div class="panel panel-warning">
<div class="panel-heading">
<h3 class="panel-title">Warning</h3>
</div>
<div class="panel-body">
<p>Lorem ipsum dolor sit amet.</p>