Skip to content

Instantly share code, notes, and snippets.

View s0h1s2's full-sized avatar
💻
Building softwares for fun & profit

Shkar Sardar s0h1s2

💻
Building softwares for fun & profit
View GitHub Profile
@s0h1s2
s0h1s2 / .cs
Created February 9, 2018 18:05
Tax Cal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp28
{
class Program
{
@s0h1s2
s0h1s2 / pig Latin.cs
Created February 16, 2018 17:20
Example way to create a pig latin program
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2
{
class Program
@s0h1s2
s0h1s2 / image Processing
Created May 25, 2018 10:21
Example Algorithm for changing Color To Blue
//my algorithm
int width = image.Width;//need width of image
int height = image.Height;//need height of image
for (int x = 0; x < width; x++)
{
//getting pixel from width and height
for (int y = 0; y <height; y++)
{
@s0h1s2
s0h1s2 / caesarcipher.py
Last active January 5, 2022 18:54
caesar cipher implementation python
def encrypt(text,key):
if key>26:
key=key%26
result=''
for char in text:
asciiCode=ord(char)
if asciiCode>=65 and asciiCode<=122: ## if character between a ...Z
charCode=asciiCode+key
if charCode>122:
charCode=charCode-26
@s0h1s2
s0h1s2 / assemblerInterpreter.js
Created January 13, 2022 15:44
codewars assemblerInterpreter part 2 not very clean but it works
"use strict";
function isAlpha(character){
return (character>='a' && character<='z' )|| (character>='A' && character<='Z') || character=='_' || isNumric(character);
}
function isNumric(character){
return (character>='0' && character<='9' );
}
function tokenizier(source)
{