Skip to content

Instantly share code, notes, and snippets.

View goldcoders's full-sized avatar

GOLDCODERS CORP goldcoders

View GitHub Profile
await Process.run('powershell', <String>[
'Set-ExecutionPolicy',
'-ExecutionPolicy',
'Unrestricted',
'-Scope',
'CurrentUser'
]);
Process.run(
'powershell',
<String>[
using System;
public class Program
{
public static void Main()
{
Console.WriteLine("Pick a temperature either celsius or fahrenheit");
Console.WriteLine("Enter 'c' for Celsius or 'f' for Fahrenheit");
// check if input is valid , if not ask again
NO CLI
https://render.com
https://render.com/docs/deploy-hugo
WITH CLI
https://vercel.com
https://vercel.com/cli
WITH CLI
https://www.serverless.com
@goldcoders
goldcoders / refreshenv.cmd
Created October 30, 2021 03:35
RefreshEnv on windows
@echo off
::
:: RefreshEnv.cmd
::
:: Batch file to read environment variables from registry and
:: set session variables to these values.
::
:: With this batch file, there should be no need to reload command
:: environment every time you want environment changes to propagate
@goldcoders
goldcoders / ntl_create.ps1
Created September 7, 2021 03:55
netlify new site script
$wshell = New-Object -ComObject wscript.shell;
Start-Sleep -milliseconds 30
$wshell.sendKeys('{ENTER}')
ntl sites:create -n $args[0]
@goldcoders
goldcoders / hugo_extended_linux.sh
Created September 5, 2021 06:49
Hugo Installer Mac ARM64
#!/bin/bash
pushd /tmp/
curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest \
| grep "browser_download_url.*hugo_extended.*_Linux-64bit\.tar\.gz" \
| cut -d ":" -f 2,3 \
| tr -d \" \
| wget -qi -
@goldcoders
goldcoders / auth.dart
Created February 9, 2021 02:48 — forked from nikhilmufc7/auth.dart
Firebase Flutter Platform Exception Codes and example
// Error Codes for SignUp
ERROR_OPERATION_NOT_ALLOWED` - Indicates that Anonymous accounts are not enabled.
ERROR_WEAK_PASSWORD - If the password is not strong enough.
ERROR_INVALID_EMAIL` - If the email address is malformed.
ERROR_EMAIL_ALREADY_IN_USE - If the email is already in use by a different account.
ERROR_INVALID_CREDENTIAL` - If the [email] address is malformed.
// sending password reset email
ERROR_INVALID_EMAIL` - If the [email] address is malformed.
@goldcoders
goldcoders / main5.dart
Created February 4, 2021 14:17 — forked from RodBr/main5.dart
Themes plus persistence
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:shared_preferences/shared_preferences.dart'; //STEP 4 - Import shared_preferences
void main() {
Get.lazyPut<ThemeController>(
() => ThemeController()); //STEP 5 - lazy create ThemeController
runApp(MyApp());
}
static const char *colorname[] = {
"#3B4252", /* hard contrast: #1d2021 / soft contrast: #32302f */
"#BF616A", //1 red
"#A3BE8C", //2 green
"#ebcb8b", //3 yellow
"#9F97CA", //4 blue
"#E58CD7", //5 magenta
"#1793D1", //6 cyan
"#F49C7A", //7 white
"#4C566A", //8 black
open git bash
go to this link: https://github.com/goldcoders/cms
git clone https://github.com/goldcoders/cms
cd cms
yarn