Testing 3D plane creation in p5js
Forked from Mike Brondbjerg's Pen p5js - 3D Spikey Plane Ball.
A Pen by Lee Probert on CodePen.
/** | |
This is a Widget extension that will automatically export an image of the widget when it is painted onscreen. | |
We was using this to create symbols for MapBox from Widgets that are generated programmatically. | |
*/ | |
import 'dart:typed_data'; | |
import 'dart:ui'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:flutter/widgets.dart'; |
import 'package:cached_network_image/cached_network_image.dart'; | |
import 'package:flutter/material.dart'; | |
import 'RootAppBar.dart'; | |
import 'dart:math' as math; | |
class RootSliverAppBar extends StatefulWidget { | |
RootSliverAppBar({ | |
Key key, | |
this.title, | |
this.actions, |
#!/usr/bin/env bash | |
if [ -e ./icons.json ]; | |
then | |
echo "Custom icons.json found, using local data only." | |
dart ./tool/generate_regular_icon_map.dart ./icons.json | |
dart ./tool/generate_light_icon_map.dart ./icons.json | |
else | |
echo "Could not find the local Icons.json file" | |
fi |
library font_awesome_flutter_original; | |
import 'package:flutter/widgets.dart'; | |
import 'package:font_awesome_flutter/font_awesome_flutter.dart'; | |
// import 'package:font_awesome_flutter/icon_data.dart'; | |
// THIS FILE IS AUTOMATICALLY GENERATED! | |
class FontAwesomeIconsOriginal { | |
static const Map<String, IconData> icons = { |
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
const defaultApp = admin.initializeApp(functions.config().firebase); | |
exports.redirect = functions.https.onRequest((req, res) => { | |
const redirectId = req.query.id; | |
console.log(redirectId); | |
var redirectUrl; | |
switch(redirectId){ |
// this is a terminal command to run in the same folder as a bunch of MP3 you want to convert so they work with Alexa. Requires that FFMpeg is installed. | |
printf "%s\0" * | xargs -0 -I {} ffmpeg -y -i {} -ac 2 -codec:a libmp3lame -b:a 48k -ar 16000 converted_{} | |
// it prepends the string "converted_" to the output files. |
/* | |
Extension for UIView for taking a snapshot and blurring it using CoreImage filters. | |
*/ | |
extension UIView { | |
func blurredSnapshot() -> UIImage { | |
func toCIImage(image: UIImage) -> CIImage { | |
return image.CIImage ?? CIImage(CGImage: image.CGImage!) | |
} |
/** | |
http://mythosil.hatenablog.com/entry/20111017/1318873155 | |
http://blog.dealforest.net/2012/03/ios-android-per-aes-crypt-connection/ | |
*/ | |
@interface NSData (AES) | |
- (NSData *)AES128EncryptedDataWithKey:(NSString *)key; | |
- (NSData *)AES128DecryptedDataWithKey:(NSString *)key; | |
- (NSData *)AES128EncryptedDataWithKey:(NSString *)key iv:(NSString *)iv; |
@import url('http://weloveiconfonts.com/api/?family=entypo'); | |
/* | |
VARIABLES | |
*/ | |
$font-stack: 'Roboto', 'Avenir', Arial, sans-serif; | |
$grey-color1: #333; | |
$grey-color2: #444; | |
$grey-color3: #555; |
Testing 3D plane creation in p5js
Forked from Mike Brondbjerg's Pen p5js - 3D Spikey Plane Ball.
A Pen by Lee Probert on CodePen.