Skip to content

Instantly share code, notes, and snippets.

View eduuh's full-sized avatar
🎯

dushg eduuh

🎯
  • Nairobi
  • 16:15 (UTC +03:00)
View GitHub Profile
#include<iostream>
using namespace std;
int main()
{
char ch;
cin >> ch;
if(ch >= 65 && ch <= 90)
cout << “UpperCase character”;
else if(ch >= 97 && ch <= 122)
cout << “Lower Case Character”;
using System;
namespace Algorithms {
class CustomLinkedList {
Node head;
public class Node {
public int data;
public Node next;
var names = new[]
{
"Ana",
"Felipe",
"Emillia"
};
foreach (var name in names)
{
Console.WriteLine($"Hello {name}");
@eduuh
eduuh / ahk
Created December 12, 2021 21:40
LAlt & i::Send, {3}
LAlt & e::Send, {2}
LAlt & n::Send, {1}
LAlt & o::Send, {0}
LAlt & l::Send, {4}
LAlt & y::Send, {6}
LAlt & u::Send, {5}
LAlt & '::Send, {7}
LAlt & )::Send, {8}
#### Functional requirements.
1. Mantain a library of albums/songs.
2. Allow users to browse albums/songs.
3. Allow users to select individual songs.
4. Prevent user from selecting entire albums.
5. Maitain a queue of song to play.
6. Play music.
7. Allow users to sort by artist.
@eduuh
eduuh / keybindings.md
Created December 22, 2020 11:40 — forked from inscapist/keybindings.md
VSCode omni-navigation with ctrl-hjkl (window navigation), ctrl-n/p (list navigation), cmd-hjkl (tab navigation)
[
  // ===================================================
  // window navigation
  {
    "key": "ctrl+h",
    "command": "workbench.action.navigateLeft"
  },
  {
    "key": "ctrl+l",
@eduuh
eduuh / emulator-install-using-avdmanager.md
Created November 10, 2020 08:02 — forked from mrk-han/emulator-install-using-avdmanager.md
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For generic skin emulator with default apis (without google apis):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-29;default;x86"

@eduuh
eduuh / tmux.md
Created November 7, 2020 05:49 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@eduuh
eduuh / node_nginx_ssl.md
Created September 25, 2020 14:44 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

[
{
"name": "Advanced Git Workshop",
"instructor": "Edwin Kamau",
"description": "level up your Git Skills",
"website": "https://eduuh.codes",
"phone": "(333) 333-3333",
"email": "enroll@test.com",
"address": "Dkut Kenya",
"careers": ["Web Development", "Data Science", "Business"],