Skip to content

Instantly share code, notes, and snippets.

View FandresenaJasmin's full-sized avatar
🏠
Working from home

Garabola FandresenaJasmin

🏠
Working from home
View GitHub Profile
@FandresenaJasmin
FandresenaJasmin / CountryCodes.json
Created March 1, 2024 09:12 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
@FandresenaJasmin
FandresenaJasmin / axios.refresh_token.1.js
Created April 28, 2023 13:35 — forked from Godofbrowser/axios.refresh_token.1.js
Axios interceptor for refresh token when you have multiple parallel requests. Demo implementation: https://github.com/Godofbrowser/axios-refresh-multiple-request
// for multiple requests
let isRefreshing = false;
let failedQueue = [];
const processQueue = (error, token = null) => {
failedQueue.forEach(prom => {
if (error) {
prom.reject(error);
} else {
prom.resolve(token);
@FandresenaJasmin
FandresenaJasmin / NaiveBayes.cs
Created April 18, 2023 11:47 — forked from hodzanassredin/NaiveBayes.cs
simple naive bayes classifier in c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
//original https://github.com/bazhenov/naive-bayes-example
namespace NaiveBayesianClasisifier
{
@FandresenaJasmin
FandresenaJasmin / WebSocketBridge.cs
Created February 15, 2023 13:18 — forked from scottgarner/WebSocketBridge.cs
Unity WebSocket Bridge using System.Net.WebSockets
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Net.WebSockets;
using UnityEngine;
@FandresenaJasmin
FandresenaJasmin / TCPTestClient.cs
Created February 1, 2023 11:33 — forked from danielbierwirth/TCPTestClient.cs
TCP Client-Server Connection Example | Unity | C# | Bidirectional communication sample: Client can connect to server; Client can send and receive messages: Server accepts clients; Server reads client messages; Server sends messages to client
// This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/
// or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using UnityEngine;
@FandresenaJasmin
FandresenaJasmin / SwipeDetector.cs
Created January 23, 2023 11:33 — forked from alialacan/SwipeDetector.cs
Simple Swipe Detection Script For Unity3D Mobile Development
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SwipeDetector : MonoBehaviour
{
private Vector2 fingerDownPos;
private Vector2 fingerUpPos;
@FandresenaJasmin
FandresenaJasmin / How to convert *app to *ipa
Created December 19, 2022 07:42 — forked from bananita/How to convert *app to *ipa
How to convert *app to *ipa
1. Create a folder called Payload
2. Place the .app folder inside of that
3. Zip up the Payload folder using normal compression
4. Then rename the file with a .ipa extension
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@FandresenaJasmin
FandresenaJasmin / app.json
Created June 10, 2022 01:18 — forked from warlock/app.json
App.json Expo Example Android And iOS permission examples
{
"expo": {
"name": "appname",
"slug": "appslug",
"privacy": "unlisted",
"sdkVersion": "32.0.0",
"platforms": [ "ios", "android" ],
"version": "2.0.36",
"orientation": "portrait",
"icon": "./assets/icon.png",
@FandresenaJasmin
FandresenaJasmin / countries.json
Created April 8, 2022 07:45 — forked from bensquire/countries.json
JSON Country List based on the ISO-3366-1 Alpha-3 Codes, with eu countries marked
[
{
"code": "AFG",
"name": "Afghanistan",
"eu": false
},
{
"code": "ALA",
"name": "Åland Islands",
"eu": false