Skip to content

Instantly share code, notes, and snippets.

View sammarks's full-sized avatar

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
sammarks / lambda.js
Created May 7, 2020 00:04
Slack notifications from AWS Amplify
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
sammarks / kube-dashboard.yaml
Created April 20, 2020 17:33
kube-dashboard-permissions
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kubernetes-dashboard
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: admin-user

Keybase proof

I hereby claim:

  • I am sammarks on github.
  • I am sammarks (https://keybase.io/sammarks) on keybase.
  • I have a public key ASCImJwdmWzoRnM-aoJKi77Ddbh1vIEBc5gtOgeYbH_FrAo

To claim this, I am signing this object:

@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";
/**
* colors.less - Unix Snip
*
* @author: Samuel Marks
* @description: Sets up colors for the site.
*/
.unixsnip {
.colors {
@sammarks
sammarks / jsgui.js
Created July 28, 2011 03:12
JSGUI Button Styling so far - Looking pretty nice and customizable.
var settings = {
padding: '5px',
backgroundBrush: {
type: 'gradient',
stops: [
{ color: "#EEEEEE", percent: "0" },
{ color: "#CCCCCC", percent: "100" }
]
},
borderBrush: {