View custom-stripe.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The CSS shown here will not be introduced in the Quickstart guide, but shows | |
* how you can use CSS to style your Element's container. | |
*/ | |
.StripeElement { | |
box-sizing: border-box; | |
height: 40px; | |
padding: 10px 12px; |
View startup.scd
( var deviceName;
deviceName = "UMC404HD 192k"; // substitute your own device here
s.reboot { // server options are only updated on reboot
// configure the sound server: here you could add hardware specific options
// see http://doc.sccode.org/Classes/ServerOptions.html
s.options.numBuffers = 1024 * 256; // increase this if you need to load more samples
View mastermind.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import random | |
from enum import Enum | |
from typing import NamedTuple | |
from collections import Counter | |
from dataclasses import dataclass | |
class Color(Enum): | |
RED = 1 | |
ORANGE = 2 |
View gist:3fc5d8e935ef99e3a78244f6d8136a28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import { Shaders, Node, GLSL } from "gl-react"; | |
import {Surface, resolveAssetSource} from "gl-react-expo"; | |
import { Image } from 'react-native'; | |
const shaders = Shaders.create({ | |
helloImage: { | |
frag: GLSL` | |
precision highp float; |
View lispparser.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* UPDATE --- It's working! | |
Just needed to make sure I was consistently spreading the args (or not spreading them) | |
and not forget that javascript typeof [] === 'object'. | |
*/ | |
/* | |
lispparser is a lisp parser! It's meant to turn a lisp string | |
like this: | |
"(first (list 1 (+ 2 3) 9))" |
View form-reset.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* reset */ | |
form input, | |
form select, | |
form textarea, | |
form fieldset, | |
form optgroup, | |
form label, | |
.StripeElement { | |
font-family: inherit; | |
font-size: 100%; |
View frontendDevlopmentBookmarks.md
Frontend Development
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
View nginx.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Nginx < Formula | |
url 'http://nginx.org/download/nginx-1.2.1.tar.gz' | |
head 'http://nginx.org/download/nginx-1.3.2.tar.gz' | |
homepage 'http://nginx.org/' | |
if ARGV.include? '--HEAD' | |
@md5='7a4f8e26b76bf9f24f884317f5614338' | |
else |
NewerOlder