Skip to content

Instantly share code, notes, and snippets.

View icebeam7's full-sized avatar
💭
🎶 You can roam the world with colours, flying high 🎶

Luis Beltran icebeam7

💭
🎶 You can roam the world with colours, flying high 🎶
View GitHub Profile
@icebeam7
icebeam7 / recipes.json
Last active August 14, 2023 14:44
Recipes JSON
[
{
"RecipeId": 1,
"RecipeName": "Long Island Iced Tea",
"RecipePhotoUrl": "https://upload.wikimedia.org/wikipedia/commons/f/f9/Long_Island_Iced_Tea_2008.jpg",
"RecipeInstructions": "Fill a cocktail shaker with ice. Pour vodka, rum, gin, tequila, triple sec, and sour mix over ice; cover and shake. Pour cocktail into a Collins or hurricane glass; top with splash of cola for color. Garnish with a lemon slice. Garnish with lemon slices and mint leaves!"
},
{
"RecipeId": 2,
"RecipeName": "Homemade Lemonade",
@icebeam7
icebeam7 / gist:e15451f535b0628d4014f647ecde5365
Created April 24, 2023 10:18
PerformanceCounterSampleCode.cs
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Diagnostics;
public class App
{
private static PerformanceCounter avgCounter64Sample;
private static PerformanceCounter avgCounter64SampleBase;
@icebeam7
icebeam7 / branches.json
Last active December 10, 2022 18:17
Branch List
[
{
"Id": 1,
"Name": "Čepkov",
"Address": "Tyršovo nábř. 5496 ",
"City": "Zlín",
"PostalCode": "760 01",
"State": "Zlinsky kraj",
"CountryId": 1,
"Latitude": 49.229041,
@icebeam7
icebeam7 / restdbweb.html
Created September 19, 2022 14:57
restdb collection access in Javscript
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Minimal HTML5 Document Showing How to use RestDB API and jQuery">
<title>RestDB jQuery example</title>
<script src="https://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<h1>RestDB jQuery example</h1>
@icebeam7
icebeam7 / products.json
Last active September 10, 2022 14:31
products.json
[
{
"Id": 0,
"Name": "Brown eggs",
"ReleaseDate": "2022-07-05",
"OriginalPrice": 28.1,
"Discount": 40,
"PictureUrl": "https://raw.githubusercontent.com/wedeploy-examples/supermarket-web-example/master/ui/assets/images/0.jpg"
},
{
@icebeam7
icebeam7 / PropertyTemplate.snippet
Created May 16, 2022 17:19
MVVM Property Snippet
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>MVVM Property</Title>
<Author>Luis</Author>
<Description>Creates a View Model Full Property.</Description>
<Shortcut>mvvmprop</Shortcut>
</Header>
<Snippet>
@icebeam7
icebeam7 / BarcodeAndroid.cs
Created April 24, 2022 12:14
Save ZXing QR Barcode as PNG (Android)
using Android;
using Android.App;
using Android.Content;
using Android.Graphics;
using Android.Net;
using Android.OS;
using Android.Provider;
using Android.Runtime;
using Android.Support.V4.App;
using Android.Views;
{
"bindings": [
{
"authLevel": "function",
"name": "req",
"type": "httpTrigger",
"direction": "in",
"route": "delete-student/{id}/{faculty}",
"methods": [
"get",
{
"bindings": [
{
"authLevel": "anonymous",
"name": "req",
"type": "httpTrigger",
"direction": "in",
"route": "update-student/{id}/{faculty}",
"methods": [
"get",
{
"bindings": [
{
"name": "req",
"authLevel": "anonymous",
"methods": [
"get",
"post"
],
"direction": "in",