Skip to content

Instantly share code, notes, and snippets.

View softmarshmallow's full-sized avatar
putting a dent in the universe

Universe softmarshmallow

putting a dent in the universe
View GitHub Profile
@softmarshmallow
softmarshmallow / sketch-typings.v3.ts
Created April 11, 2021 17:20
this is a copy of sketch typings
View sketch-typings.v3.ts
/**
* UUID string.
*/
export declare type Uuid = string;
/**
* Collection of global document objects
*/
export declare type AssetCollection = {
_class: 'assetCollection';
do_objectID: Uuid;
View gist_demo_flutter.dart
// from dartpad.dev
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
View access-global-state-under-konva-canvas-recoil.tsx
import React from "react";
import { useRecoilBridgeAcrossReactRoots_UNSTABLE, useRecoilState } from "recoil";
function accessGlobalStateUnderKonvaCanvas(){
// https://github.com/konvajs/react-konva/issues/533
const RecoilBridge = useRecoilBridgeAcrossReactRoots_UNSTABLE()
return (
@softmarshmallow
softmarshmallow / p5-nextjs.tsx
Created November 19, 2020 06:58
p5 + nextjs + typescript configuration (simple exmaple)
View p5-nextjs.tsx
import React, { Component } from "react"
type P5 = import("p5");
import dynamic from "next/dynamic"
const Sketch = dynamic(import("react-p5"), { ssr: false });
const imageurl = 'https://upload.wikimedia.org/wikipedia/en/9/95/Test_image.jpg'
interface ComponentProps {
//Your component props
}
@softmarshmallow
softmarshmallow / bridged-github-cla.md
Last active May 10, 2021 02:08
bridged.xyz individual contributor license agreement
View bridged-github-cla.md

Bridged Peojects Limited Licensing CLA

The License of opensource projects under github.com/bridgedxyz, the organization Bridged can change the License explicitly at any curcumstances. We Guarantee that all opensource started project will remain open for read (clone) and write (via PR) forever, but the license can be changed, and we will notify all contributors.

We offer anyone to make profits by "using" the products / software / technology. But we do not allow other profit company to re distribute the products / services as-is in the same market posision. You can learn more about this on contributing-and-license

This license aggreement is applied to all bridged's opensource projects, and by contributing to it, the contributor admits this agreement. and cannot file a legal issue.

View elevated_textfield.dart
import 'package:flutter/material.dart';
var rad = 16.0;
var borderWidth = 2.0;
var errorColor = Colors.red;
// ignore: must_be_immutable
class ElevatedTextField extends StatelessWidget {
final TextInputType keyboardType;
final FocusNode focusNode;