Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Ben arkilis

🎯
Focusing
View GitHub Profile
@waylybaye
waylybaye / index.js
Last active Mar 10, 2022
Send Notification using Telegram when new IAP is purchased
View index.js
const functions = require('firebase-functions');
const TelegramBot = require('node-telegram-bot-api');
const token = "***"
const chatID = 1024 // your telegram id, you must first send a message to your bot
exports.notifyIAP = functions.analytics.event('in_app_purchase').onLog((event) => {
const purchaseValue = event.valueInUSD;
if (purchaseValue > 0) {
const bot = new TelegramBot(token, {polling: false});
@MadLittleMods
MadLittleMods / Pendulum.cs
Last active Dec 28, 2022
A Unity script to Simulate Pendulum Motion
View Pendulum.cs
using UnityEngine;
using System.Collections;
// Author: Eric Eastwood (ericeastwood.com)
//
// Description:
// Written for this gd.se question: http://gamedev.stackexchange.com/a/75748/16587
// Simulates/Emulates pendulum motion in code
// Works in any 3D direction and with any force/direciton of gravity
//
@dconnolly
dconnolly / README.md
Last active Jan 6, 2023
All 100 Chromecast background images that are rotated through, linked to their original locations on Google hosting. Links to 2560 width versions, where available.
@mmackh
mmackh / NSString+Additions.h
Last active Jan 19, 2017
Personal NSString Additions
View NSString+Additions.h
//
// NSString+Hash.h
// Orbitink
//
// Created by mmackh on 5/3/13.
// Copyright (c) 2013 Professional Consulting & Trading GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>