Skip to content

Instantly share code, notes, and snippets.

View rapando's full-sized avatar
👨‍💻
If you have an open source project, hit me up.

Samson Rapando rapando

👨‍💻
If you have an open source project, hit me up.
View GitHub Profile
@rapando
rapando / agnoster.zsh-theme
Created August 15, 2023 06:17
agnoster custom settings
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@rapando
rapando / goroutines.go
Last active November 11, 2022 12:36
Go Routines.
package main
import (
"fmt"
"log"
"sync"
"time"
)
type Result struct {
@rapando
rapando / basics.zig
Created October 23, 2022 14:11
Zig Learning
const std = @import("std");
const eq1 = std.mem.eql;
const ArrayList = std.ArrayList;
const test_allocator = std.testing.allocator;
// struct definition
const Person = struct {
x: f64,
y: f64,
};
package main
import "fmt"
func main() {
var x = 3
var y = 5
printSum(x, y)
@rapando
rapando / .vimrc
Created March 20, 2022 09:42
Vim Configs
" vim-bootstrap 2022-03-19 19:09:26
"*****************************************************************************
"" Vim-Plug core
"*****************************************************************************
let vimplug_exists=expand('~/.vim/autoload/plug.vim')
if has('win32')&&!has('win64')
let curl_exists=expand('C:\Windows\Sysnative\curl.exe')
else
let curl_exists=expand('curl')
@rapando
rapando / HelloWorld.cs
Last active August 2, 2021 09:39
C# Tutorial
using System;
struct Person
{
private string _name;
private int _age;
public static int st;
public void SetValues(string name, int age)
{
@rapando
rapando / 1.defining-variables.go
Last active April 29, 2021 15:23
Habiba Notes
package main
import "fmt"
func main() {
/*
Recap:
In formatted string,
%d stands for integers
package main
import (
"log"
"sync"
"time"
)
func main() {
#include <iostream>
using namespace std;
// base (parent class)
class Person {
private:
string name;
string gender;
int age;
" plugins
"
call plug#begin('~/.vim/plugged')
Plug 'NLKNguyen/papercolor-theme'
Plug 'fatih/vim-go'
Plug 'neoclide/coc.nvim', {'do' : 'yarn install --frozen-lockfile'}
Plug 'preservim/nerdtree'
Plug 'wakatime/vim-wakatime'
call plug#end()