Skip to content

Instantly share code, notes, and snippets.

@prucha
prucha / UnityMeshCreator.cs
Last active March 31, 2024 15:45
Unity: Creating a Mesh in code
using UnityEngine;
using System.Collections;
// This Unity script demonstrates how to create a Mesh (in this case a Cube) purely through code.
// Simply, create a new Scene, add this script to the Main Camera, and run.
public class UnityMeshCreator : MonoBehaviour {
GameObject _cube;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
@ttrefren
ttrefren / L28.jql.js
Last active April 6, 2022 09:04
Mixpanel JQL query to do frequency analysis (aka the "power curve")
/*
This query will return a frequency analysis, e.g. number of active days in time window.
If you ask for 28 days, it will give you the # of users who did your event 1 unique day, 2 unique days, etc
in the time window.
*/
function main() {
return Events({
from_date: '2018-07-01',
to_date: '2018-07-28',
@divyanshub024
divyanshub024 / wave_anim.dart
Last active November 18, 2020 01:35
Flutter Circular Wave Canvas Animation
import 'dart:math' as math;
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@CodingDoug
CodingDoug / README.md
Created December 5, 2019 02:24
How to schedule a Cloud Function to run in the future (in order to build a Firestore document TTL)