Skip to content

Instantly share code, notes, and snippets.

@SalesforceBobLightning
SalesforceBobLightning / CustomExceptionWithoutConstructor.cls
Created July 26, 2018 22:33
Custom Salesforce Apex Exception Class Without Constructor
private class CustomExceptionWithoutConstructor extends Exception {
public override String getMessage() {
List<String> args = new String[]{super.getMessage()};
return String.format('Your custom message here with one argument: {0}', args);
}
}
@0xabad1dea
0xabad1dea / severscam.md
Last active July 12, 2021 01:32
Sever Scam

The Scammiest Scam To Yet Anonymity Scam

I'm still holding out for this being a hoax, a big joke, and that they're going to cancel the kickstarter any minute. It'd be quite the cute "lessons learned" about anonymity scams. However, I will be treating it from here on out as a genuine scam. (As of May 2nd, the kickstarter has been cancelled, after the strangest attempt to reply to this imaginable. Good riddance.)

This absolutely ridiculous thing was brought to my attention by a friend and since it was late at night I thought I must be delirious in how absurdly over the top fake it seemed. So I slept on it, woke up, and found that it had gotten a thousand dollars more funding and was every bit as flabbergasting as I thought it was.

Since I realize that not everyone has spent their entire lives studying computers – and such people are the targets of such scams –

@imjasonh
imjasonh / markdown.css
Last active May 24, 2024 22:56
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@jennschiffer
jennschiffer / snort.md
Last active October 8, 2018 14:33
Snort

Snort Config

Author: yournamehere

Last Updated: datehere

Tasks

  • compile california style sheets
  • update scripts
  • make the code minified

License

@mbostock
mbostock / .block
Last active October 19, 2021 16:36 — forked from mbostock/.block
click-to-zoom via transform
license: gpl-3.0
@jpgg
jpgg / evaluateTest.asm
Created March 25, 2012 23:36
Programs to test 273 A3 assignment
# To use, first add your evaluateP and power functions to the bottom of the
# file where specified.
# Next, edit the values of POLYORDER, COEFFICIENTS, and ARGX to whatever you
# want. Test what the polynomial will return with something like wolfram alpha
# and then assemble it in Mars and run it. The program just returns the final
# value.
.data
ZERO: .float 0.0
ONE: .float 1.0
.data
list1: .word 4,6,3,7,9,34,9,1,2,2,3,4,4,4,6
buf1: .space 60
list2: .word 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
buf2: .space 60
list3: .word -1,43,5,6,-7,2,3,4,-3,4,5,3,3,2,3
buf3: .space 60
test1: .asciiz "\nTesting for list1 - random list\n------------------------------\n"
test2: .asciiz "\nTesting for list2 - sorted list\n------------------------------\n"
test3: .asciiz "\nTesting for list3 - negative numbers\n------------------------------\n"
// ==UserScript==
// @name WebCT Multiple sessions and Never expiring mymcgill sessions
// @namespace fuck webct
// @description ^
// @include https://mycourses.mcgill.ca/webct/cobaltMainFrame.dowebct?*
// @include http://mycourses.mcgill.ca/webct/cobaltMainFrame.dowebct?*
// @include https://mymcgill.mcgill.ca/portal/page/portal*
// @include http://mymcgill.mcgill.ca/portal/page/portal*
// ==/UserScript==
@sontek
sontek / snowjob.py
Created December 22, 2011 04:24
Make your terminal snow with python
#!/usr/bin/env python
import os
import random
import time
import platform
snowflakes = {}
try:
# Windows Support
@p01
p01 / LICENSE.txt
Last active May 23, 2024 13:46 — forked from 140bytes/LICENSE.txt
Sudoku Solver in 140bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri - http://www.p01.org/releases/
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE