This file contains hidden or 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
using System.Linq; | |
using System; | |
using UnityEngine; | |
using UnityEngine.Events; | |
using UnityEngine.Playables; | |
using UnityEngine.Timeline; | |
public class SignalReceiverWithString : MonoBehaviour, INotificationReceiver | |
{ |
This file contains hidden or 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
/** | |
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'; |
This file contains hidden or 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 '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, |
This file contains hidden or 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 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 |
This file contains hidden or 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
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 = { |
This file contains hidden or 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
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 file contains hidden or 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
// 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. |
This file contains hidden or 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
/* | |
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!) | |
} |
This file contains hidden or 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
/** | |
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; |
This file contains hidden or 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 url('http://weloveiconfonts.com/api/?family=entypo'); | |
/* | |
VARIABLES | |
*/ | |
$font-stack: 'Roboto', 'Avenir', Arial, sans-serif; | |
$grey-color1: #333; | |
$grey-color2: #444; | |
$grey-color3: #555; |
NewerOlder