Skip to content

Instantly share code, notes, and snippets.

Happy-Ferret

Block or report user

Report or block Happy-Ferret

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Happy-Ferret
Happy-Ferret / ll.bnf
Created Jun 29, 2019 — forked from mewmew/ll.bnf
Gocc grammar for LLVM IR.
View ll.bnf
// Based on https://github.com/llir/grammar/blob/6cb09c87c6e434310b41d3c5b2b3d59c94f986c4/ll.bnf
// ### [ Lexical part ] ########################################################
_ascii_letter_upper
: 'A' - 'Z'
;
_ascii_letter_lower
: 'a' - 'z'
View Builtins.cpp
// C++ Builtins
#include <iostream>
#include <string>
using namespace std;
// Nothing Class
class Nothing {
@Happy-Ferret
Happy-Ferret / Runner
Created Jun 25, 2019 — forked from Westenburg/Runner
Simple endless runner
View Runner
-- Mountains
-- Simple endless runner game by West
-- taking inspiration from "Alto's adventure" for the Mountain backdrop and day to night cycle
-- Use this function to perform your initial setup
function setup()
--get rid of the sidebar
displayMode(FULLSCREEN)
-- define 3 the three game states for the finite state machine game engine and initialise gamestate variable
READY=1
GAMEOVER=2
@Happy-Ferret
Happy-Ferret / Chrome_dinosaur.cpp
Created Jun 25, 2019 — forked from onkar27/Chrome_dinosaur.cpp
Chrome's Dinosaur Game designed in C++ "graphics.h"
View Chrome_dinosaur.cpp
//Onkar J Sathe
#include <bits/stdc++.h>
#include <graphics.h>
using namespace std;
#define Mx getmaxx()
#define My getmaxy()
#include <dos.h>
#include <windows.h>
int main()
View theme.json
{
"name": "happy-theme",
"type": "dark",
"colors": {
"activityBarBadge.background": "#007acc",
"editor.background": "#1e1e1e",
"editor.foreground": "#d4d4d4",
"editor.inactiveSelectionBackground": "#3a3d41",
"editor.selectionHighlightBackground": "#add6ff26",
"editorIndentGuide.activeBackground": "#707070",
View clip_spritesheet.go
package main
import (
"github.com/banthar/Go-SDL/sdl"
)
const (
SCREEN_WIDTH int = 640
SCREEN_HEIGHT int = 480
SCREEN_BPP int = 32
@Happy-Ferret
Happy-Ferret / word_wrap.go
Created May 4, 2019 — forked from kennwhite/word_wrap.go
Basic golang word wrap string split
View word_wrap.go
/*
Wrap long lines on rough column boundaries at spaces
Working example: https://play.golang.org/p/3u0X6NyMua
Based on algo from RosettaCode, which is nifty
https://www.rosettacode.org/wiki/Word_wrap#Go
*/
package main
import (
View todo.vue
<template>
<div class="app">
<div class="container">
<div class="row header">
<h1 class="col s6 offset-s3 center-align teal-text">To-Do List!</h1>
</div>
<div class="row">
<form @submit.prevent="submitTodo" class="col s6 offset-s3">
<ion-item>
<ion-label position="floating">What needs to be done?</ion-label>
View oop.go
package main
import (
"fmt"
"reflect"
)
// Animal base "class".
type Animal struct {
Name string
@Happy-Ferret
Happy-Ferret / README.md
Created Nov 7, 2018 — forked from badboy/README.md
Save github issues offline.
View README.md

First install the required gems:

gem install octokit awesomeprint rainbow

Then run it to extract all of your open GitHub issues into files (with comments).

ruby my-gh-issues.rb
You can’t perform that action at this time.