Skip to content

Instantly share code, notes, and snippets.

View mickelsonm's full-sized avatar

Matt Mickelson mickelsonm

  • USA
View GitHub Profile
public with sharing class StreamingProxies {
/**
* @Description This method checks for the existance of proxy records.
* @Param {List} A list of record Ids.
* @Return {List} A list of all found StreamingProxy__c records.
*/
public static List<StreamingProxy__c> recordsExist(List<Id> recordIds) {
List<StreamingProxy__c> records = [
SELECT Id, RecordID__c, ObjectType__c FROM StreamingProxy__c WHERE RecordID__c IN :recordIds
];
@mickelsonm
mickelsonm / challenge.md
Last active October 20, 2020 14:10
Code Challenge

Code Challenge 1 - Searching the Products

For today's challenge we would like you to build a web application for viewing and searching products. There are core areas we will be evaluating:

Frontend Development


This is the visual side of your web application. Be thoughtful when building your HTML, CSS, and JavaScript.

You can use any modern web frameworks of your choosing.

User authentication system

Your task is now to create a user authentication system.

This document will guide you through all the features and implication of such system, so that you don't have to search them yourself.

We will focus on web/browser-technologies, however similar concept can be widely applied. This guide, is a work in progress, feel free to comment and provide feedbacks.

Expected Workflows

#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x) {r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
@mickelsonm
mickelsonm / Dev-Guide.md
Created November 3, 2017 00:17
The Developer Guide to Promoting Your Work

The Developer Guide to Promoting Your Work – Todd Gardner

· You’re building a product (You!)

o Great products sell themselves – WRONG

o Selling to friends is easier than selling to strangers

o Mark, sales, evangelist, support

router.HandleFunc("/import", func(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodPost {
http.Error(w, "error: invalid method", http.StatusBadRequest)
return
}
edata, err := ioutil.ReadAll(r.Body)
if err != nil {
log.Printf("Error reading request body: %v\n", err)
http.Error(w, "error: reading file", http.StatusInternalServerError)
@mickelsonm
mickelsonm / googleplay-movielist.txt
Last active August 27, 2017 16:31
Google Play Movie List
(500) Days Of Summer
12 Rounds 2: Reloaded
13
22 Jump Street
300
300: Rise of an Empire
50 First Dates
50/50
90 Minutes in Heaven
A Beautiful Mind
@mickelsonm
mickelsonm / test.md
Last active November 21, 2016 01:16

Hello World

This is a good test.

  • Apples
  • Bannanas
  • Oranges
  • Item 1
  • Item 2
@mickelsonm
mickelsonm / 000-default.conf
Created October 31, 2016 14:33
default config file
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
@mickelsonm
mickelsonm / stringsortex.go
Created July 15, 2016 18:05
String sort tex
package main
import (
"fmt"
"sort"
)
const (
//sort the characters in the following string:
charsText = "abcdefghijklmnopqrstuvwxyz_"