Skip to content

Instantly share code, notes, and snippets.

View treva-123mutebi's full-sized avatar
🏠
Working from home

Mutebi David Trevor treva-123mutebi

🏠
Working from home
View GitHub Profile
@treva-123mutebi
treva-123mutebi / main.dart
Created December 23, 2022 09:16
malevolent-waterfall-0878
import 'dart:math';
String generateBrandName() {
final rng = Random();
final name = 'JeanAkulloCoprise';
final brandName = name[rng.nextInt(name.length)] +
name[rng.nextInt(name.length)] +
name[rng.nextInt(name.length)] +
name[rng.nextInt(name.length)] +
@treva-123mutebi
treva-123mutebi / BinaryGap.cs
Created April 2, 2022 13:39 — forked from SourceCode/BinaryGap.cs
Binary Gap - Codibility - C#
using System;
namespace ObjectApp1
{
class Program
{
static void Main(string[] args)
{
var S = new Solution();
Console.WriteLine(S.solution(0));
@treva-123mutebi
treva-123mutebi / index.html
Created November 18, 2021 20:56
Responsive Landing Page
<video autoplay loop muted poster="screenshot.jpg" id="background">
<source type="video/mp4" src="https://staging.coverr.co/s3/mp4/Boxing-gym.mp4">
<source type="video/webm" src="https://staging.coverr.co/s3/webm/Boxing-gym.webm">
</video>
<div class="main">
<div id='content'>
<div class='title'>
<span>FITNESS ZONE</span>
</div>
<p>coming soon</p>
@treva-123mutebi
treva-123mutebi / README.txt
Created May 7, 2021 14:52
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25+commit.59dbf8f1.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@treva-123mutebi
treva-123mutebi / README.txt
Created May 7, 2021 14:46
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25+commit.59dbf8f1.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS