This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| await Process.run('powershell', <String>[ | |
| 'Set-ExecutionPolicy', | |
| '-ExecutionPolicy', | |
| 'Unrestricted', | |
| '-Scope', | |
| 'CurrentUser' | |
| ]); | |
| Process.run( | |
| 'powershell', | |
| <String>[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $wshell = New-Object -ComObject wscript.shell; | |
| Start-Sleep -milliseconds 30 | |
| $wshell.sendKeys('{ENTER}') | |
| ntl sites:create -n $args[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| open git bash | |
| go to this link: https://github.com/goldcoders/cms | |
| git clone https://github.com/goldcoders/cms | |
| cd cms | |
| yarn |