Skip to content

Instantly share code, notes, and snippets.

@toksdotdev
toksdotdev / index.php
Created May 12, 2017 08:35 — forked from drizzentic/index.php
Sample USSD Application
<!-- MIT License
Copyright (c) 2016 Derrick Rono
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@toksdotdev
toksdotdev / Screenshoter.py
Created September 15, 2017 14:05
A simple library to perform a continuous screenshot of your screen using pyautogui module - In Python
# MIT License
# Copyright (c) 2016 Derrick Rono
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
@toksdotdev
toksdotdev / nuban-example.rs
Last active December 19, 2017 05:21
Generating random and fully computed NUBAN in Rust.
extern crate nuban_rust;
use nuban_rust::Nuban;
fn main() {
let a = [
["382", "898424554"], ["032", "457395734"], ["122", "758375034"], ["776", "564820900"],
["453", "898424554"], ["989", "457395734"], ["090", "758375034"], ["232", "564820900"],
["766", "898424554"], ["878", "457395734"], ["343", "758375034"], ["445", "564820900"],
];
@toksdotdev
toksdotdev / Program.cs
Created April 18, 2018 14:49
Using OOP to represent things related to sailing...
public class Vessel {
List<SeaFarer> SeaFarers; // this is private automatically to help promote data abstraction
// (data shouldn't be assessed publicly,
// instead use GetSeaFearer() in this class )
public Vessel() { // this is constructor
this.SeaFarers = new List<SeaFarers>(); // initializes the seaferes in constructor
}
public Vessel(List<SeaFarer> seaFarer) { //this is constructor overloading
@toksdotdev
toksdotdev / digitalocean-promo-cupon-code-free-trial.md
Created June 14, 2018 10:29
DigitalOcean Coupon Code $35 / $100 1 Year Free Trial - June 2018

alt text

Digital Ocean Promo Coupon Code $35 / $100 1 Year Free Trial

1) Get $35 / $25 / $20 / $10 free DigitalOcean Credit.

2) Get DigitalOcean 1 Year Free Trial.

3) Get $100 Credit For 60 Days. $100 Free Credits

ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@toksdotdev
toksdotdev / replace_line_in_same_line.c
Created June 26, 2018 12:36
Replace Line in print in same line
#include <stdio.h>
void clear(int size){
char num[size];
memset(num, ' ', size + 3);
printf("\r%s", num);
}
int main()
@toksdotdev
toksdotdev / Simple Lang 0.3.36 Release Note.md
Last active August 17, 2018 19:50
Simple Lang 0.3.36 Release Note

SimpleLang Release Note 0.3.36

We've come a long journey in ensuring that we draw closer to a stable 1.0 in coming months. We wouldn' forget to always rmemeber the ultimate goal of Simple, which is to

Over the last release cycle, we've emphasized on enabling a smoothe embedded integration between Simple and other languages such as C/C++ and javascript, including going live on our Official Website.

Installation

  • One-Line Installation: Installing simple hasn't been greater than before with the release of a the online installer. It has been out major goal oat ensuring that the installation process becomes shorter than before. This would be available on all x86 and x64 architecture on all the following OS namely:
  • Linux
  • Windows
@toksdotdev
toksdotdev / cards-style.scss
Created June 27, 2018 11:28
Netflix like card
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700);
// Variables
$regal-blue: #034378;
$san-juan: #2d4e68;
$bermuda: #77d7b9;
$white: #fff;
$black: #000;
$open-sans: 'Open Sans',
sans-serif;
// clear-fix mixin
f60f5f8d4ed42971a29a1e36498006d89319d4976a18cbb5092c65ade0be1a044781c28502041f62c89f306903671ada5695f3f60f0cc1968f0483f207475543