Skip to content

Instantly share code, notes, and snippets.


Sam Marks sammarks

View GitHub Profile

BusinessU Classes Task

A critical aspect of BusinessU is managing classes and the students inside them. In order to facilitate communication between the frontend and the server, we use GraphQL, and for our frontend framework we use React.

The goal of this task is to give us an idea of your skill level before starting work for BusinessU.

For this task, implement a simple GraphQL server and frontend that is responsible for creating / updating / deleting classes.

Submit your code in a private repo and share with me. I am sammarks on BitBucket or sammarks on GitHub.

sammarks / lambda.js
Created May 7, 2020
Slack notifications from AWS Amplify
View lambda.js
const https = require('https')
exports.handler = async (event) => {
const sns = event.Records[0].Sns.Message
let color = ''
let message = ''
if (sns.includes('build status is FAILED')) {
color = '#E52E59'
message = 'Release to My Company **production** failed.'
} else if (sns.includes('build status is SUCCEED')) {
sammarks / kube-dashboard.yaml
Created Apr 20, 2020
View kube-dashboard.yaml
apiVersion: v1
kind: ServiceAccount
name: admin-user
namespace: kubernetes-dashboard
kind: ClusterRoleBinding
name: admin-user

Keybase proof

I hereby claim:

  • I am sammarks on github.
  • I am sammarks ( on keybase.
  • I have a public key ASCImJwdmWzoRnM-aoJKi77Ddbh1vIEBc5gtOgeYbH_FrAo

To claim this, I am signing this object:

View file.less
@media (min-width: 1200px) {
@import "large-display.less";
@media (min-width: 980px) and (max-width: 1199px) {
@import "desktop.less";
@media (min-width: 768px) and (max-width: 979px) {
@import "portrait-tablets.less";
View gist:3191461
* colors.less - Unix Snip
* @author: Samuel Marks
* @description: Sets up colors for the site.
.unixsnip {
.colors {
sammarks / jsgui.js
Created Jul 28, 2011
JSGUI Button Styling so far - Looking pretty nice and customizable.
View jsgui.js
var settings = {
padding: '5px',
backgroundBrush: {
type: 'gradient',
stops: [
{ color: "#EEEEEE", percent: "0" },
{ color: "#CCCCCC", percent: "100" }
borderBrush: {