Skip to content

Instantly share code, notes, and snippets.

🐈
meow

Sebastian sebmck

🐈
meow
Block or report user

Report or block sebmck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am kittens on github.
  • I am sebmck (https://keybase.io/sebmck) on keybase.
  • I have a public key ASBzIEBB9UWMi7xO62JsBfAPNPszyyR-jVJJol3k421a9Qo

To claim this, I am signing this object:

View traverse.js
const parsed = { type: "File", program: parse(unsorted) };
// Find all imports
let imports = []
traverse(parsed, {
ImportDeclaration(node, parent) {
imports.push({node, text: unsorted.substring(node.start, node.end)});
}
});
View Column.js
import React from 'react';
import { Flex } from 'jsxstyle';
class Column extends React.Component {
render () {
return <Flex {...this.props} direction="column"/>;
}
}
export default Column;
View navbar.ts
interface LoginNavState {
showLoginOptions: boolean
}
class LoginNav extends React.Component<{}, LoginNavState> {
constructor() {
super()
this.state = {
showLoginOptions: false
View correct.js
function getValues () {
return {
a: 1,
b: 2
};
}
let {a, b} = getValues();
console.log(a, b);
View gist:8468025
// ==UserScript==
// @name Remove "▶" from page titles
// @include *
// ==/UserScript==
var title = document.getElementsByTagName("title")[0];
var ignore = false;
title.addEventListener("DOMSubtreeModified", function () {
if (ignore) {
View gist:8254705
function plus(a, b){
switch (a) {
case "0":
switch (b) {
case "0": return 0;
case "1": return 1;
case "2": return 2;
case "3": return 3;
case "4": return 4;
case "5": return 5;
View gist:6482635
function time(){
var time = process.hrtime();
return (time[0] * 1000) + (time[1] / 1000000);
}
var start = time();
var tmp = [];
for (var i = 0; i < 10000; i++){
tmp.push("test");
}
View gist:5894672
/**
* @file Functions relating to type validation.
*/
module.exports = function(_){
/**
* Check if value is an object, if not return an empty object
*
* @param {Object} obj
View gist:5639739
╔═════════════════╦════════════╦═════════╦════════════╦════════════╦═════════╗
║ ║ Monday ║ Tuesday ║ Wednesday ║ Thursday ║ Friday ║
╠═════════════════╬════════════╬═════════╬════════════╬════════════╬═════════╣
║ Morning ║ ║ ║ Radio ║ ║ ║
║ (8:25-8:55) ║ ║ ║ ║ ║ ║
╠═════════════════╬════════════╬═════════╬════════════╬════════════╬═════════╣
║ Period 1 ║ Math ║ VCE IT ║ Philosophy ║ Literature ║ English ║
║ (8:55 - 10:10) ║ VA2 ║ 306 ║ ║ ║ 206 ║
╠═════════════════╬════════════╬═════════╬════════════╬════════════╬═════════╣
║ Recess ║ ║ ║ Radio ║ ║ ║
You can’t perform that action at this time.