Skip to content

Instantly share code, notes, and snippets.

View theClarkSell's full-sized avatar

Clark Sell theClarkSell

View GitHub Profile
@theClarkSell
theClarkSell / postcss.config.cjs
Created March 4, 2022 18:55
postcss svelte config
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');
const mode = process.env.NODE_ENV;
const dev = mode === 'development';
const config = {
plugins: [
autoprefixer(),
!dev &&
@theClarkSell
theClarkSell / settings.json
Created February 27, 2022 14:19
SvelteKit VSCode Settings
{
"editor.rulers": [80],
"editor.formatOnSave": true,
"prettier.tabWidth": 2,
"editor.insertSpaces": false,
"editor.tabSize": 2,
"editor.snippetSuggestions": "top",
"editor.codeActionsOnSave": {
"source.fixAll": true
},
@theClarkSell
theClarkSell / launch.json
Created February 27, 2022 13:56
SvelteKit VSCode debugging configuration
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome",
"request": "launch",
"type": "pwa-chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
},
@theClarkSell
theClarkSell / machine.js
Created October 28, 2020 20:29
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine(
{
id: 'pagingMachine',
initial: 'init',
context: {
items: [],
cursor: null,
hasMore: false,
},
@theClarkSell
theClarkSell / machine.js
Created October 27, 2020 13:19
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine(
{
id: 'community',
type: 'parallel',
context: {
slug: '1234',
community: undefined,
followMachineServices: undefined,
@theClarkSell
theClarkSell / GraphQL_Meetup.md
Last active August 19, 2020 15:56
GraphQL Meetup Follow Up

whois

 Clark Sell
 Unspecified, https://unspecified.io
 THAT Conference, https://thatconference.com, https://that.us

Where you can find me:

@theClarkSell
theClarkSell / default.css
Created October 11, 2012 21:37
31 Days of Windows 8 - Day 1
body {
}
@media screen and (-ms-view-state: fullscreen-landscape) {
}
@media screen and (-ms-view-state: filled) {
}
@media screen and (-ms-view-state: snapped) {
@theClarkSell
theClarkSell / example_delicious.json
Created August 9, 2011 13:42
Exploring JavaScript Native JSON Support with InfoVis and Delicious
{
"u": "http://net.tutsplus.com/tutorials/javascript-ajax/the-10-javascript-mistakes-youre-making/",
"d": "The 10 JavaScript Mistakes you2019re Making",
"t": [
"javascript",
"ajax",
"eval",
"via:zite"
],
"dt": "2011-06-06T16:13:50Z",
@theClarkSell
theClarkSell / first_line.js
Created August 5, 2011 21:55
Using JavaScript’s Strict Variant
<script>
var something = "something else";
"use strict"; // wasn't first statement
foo = "foo"; // will not fail
(function() {
"use strict";
bar = "bar"; // will fail
})();
@theClarkSell
theClarkSell / DeveloperSmackdown.cshtml
Created July 28, 2011 14:25
Consuming an OData Service from WebMatrix
@functions {
public static IList<dynamic> GetRecentShow()
{
return OData.Get(@"http://developersmackdown.com/services/odata/Shows?$orderby=ShowId%20desc&$top=1");
}
}
@helper GetLatestShow() {
var show = DeveloperSmackdown.GetRecentShow();