Skip to content

Instantly share code, notes, and snippets.

View DamienDoumer's full-sized avatar
🎯
Sharpening my dev skills...

Damien Doumer DamienDoumer

🎯
Sharpening my dev skills...
View GitHub Profile
@DanDiplo
DanDiplo / JS-LINQ.js
Last active October 31, 2024 12:33
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version):
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
@lopspower
lopspower / README.md
Last active November 14, 2024 08:32
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@parth7676
parth7676 / bprop.snippet
Last active February 19, 2021 03:18
Bindable Property Snippet for Xamarin Forms.
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>bprop</Title>
<Author>Microsoft Corporation</Author>
<Description>Code snippet for an automatically implemented $name$Property
@nicerobot
nicerobot / wait-for-postgres.sh
Created June 27, 2017 14:30
A better wait-for-postgres.sh
#!/bin/bash -e
# wait-for-postgres.sh
# Adapted from https://docs.docker.com/compose/startup-order/
# Expects the necessary PG* variables.
until psql -c '\l'; do
echo >&2 "$(date +%Y%m%dt%H%M%S) Postgres is unavailable - sleeping"
sleep 1
done
@hariangr
hariangr / example.dart
Created June 5, 2019 13:31
Docked FloatingActionButton center with BottomNavigationBar
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
home: Scaffold(
@tomh4
tomh4 / DuoToneIcon.cs
Last active October 23, 2023 12:32
An implementation to use DuoTone Icons in Xamarin.Forms
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Text.RegularExpressions;
using Xamarin.Forms;
namespace Fontawesome
{
public class DuoToneIcon : AbsoluteLayout
@Escarter
Escarter / resources-mtn-momo-openapi-integration-webinar.md
Last active May 8, 2020 17:24
Resources for the webinar on MTN MoMo OpenAPI integration [01/05/2020]

MTN MoMo OpenAPI Integration

Thanks again for your participation during this session. below are some resources that might help.

Flow

  1. MTN MoMo OpenAPI Overview
    • Registration/Login
    • Available APIs → Registration to APIs
    • Subscription API keys
    • Documentation
  2. Sandbox
@davidfowl
davidfowl / .NET6Migration.md
Last active October 23, 2024 18:30
.NET 6 ASP.NET Core Migration
@dileepadev
dileepadev / .gitignore
Last active December 30, 2023 22:37
.gitignore for Flutter projects
### ------------------------- Flutter.gitignore ------------------------ ###
# Miscellaneous
*.class
#*.lock
*.log
*.pyc
*.swp
.DS_Store
.atom/