Skip to content

Instantly share code, notes, and snippets.

View yugecin's full-sized avatar
🐱
🤔 status? 🐱💕🦊

Robin yugecin

🐱
🤔 status? 🐱💕🦊
View GitHub Profile
@yugecin
yugecin / entab.c
Last active February 16, 2018 17:59 — forked from sqroot3/entab.c
entab.c - Program that replaces a string of blanks by the min # of spaces & tabs required to generate identical output
// http://forum.sa-mp.com/showthread.php?t=649767
#include <stdio.h>
#define TABSIZE 8
int main()
{
int c, cft, nspaces;
//cft = chars from tab, nspaces = number of spaces buffered
@yugecin
yugecin / bggen
Created May 13, 2017 13:15
php background triangle pattern generator
<?php
if (empty($_GET['w']) || empty($_GET['h']) || empty($_GET['tw'])) {
die('w=width&h=height&tw=trianglewidth');
}
$w = $_GET['w'];
$h = $_GET['h'];
$tw = $_GET['tw'];