Skip to content

Instantly share code, notes, and snippets.

View Xibanya's full-sized avatar

Manuela Malasaña Xibanya

View GitHub Profile
window.addEventListener('load', function(e) {
document.querySelector('#test').innerHTML = 'Return to Space Merchant';
}, false);
var startButton = document.getElementById('clickyButton');
startButton.addEventListener('click', setup, false);
var resultWindow = document.getElementById('theWell');
var mainWindow = document.getElementById('main');
@Xibanya
Xibanya / style.css
Created August 13, 2015 16:30
styling for Space Merchant game
/*!
* Bootstrap v3.3.2 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
@Xibanya
Xibanya / index.html
Last active August 29, 2015 14:27
html for Space Merchant game
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width" />
<title>testing</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
@Xibanya
Xibanya / characters.html
Created August 29, 2015 01:27
Simple uncluttered javascript example with mouseover, mouseout, and keyup events, eventlistener, and swapping css classes.
<html>
<head>
<title>Select a Character</title>
<script type="text/javascript" src="hover.js"></script>
<style>
*, *:before, *:after{
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
@Xibanya
Xibanya / OverworldManager.cs
Created August 8, 2016 16:44
extremely terrible code from halfway through the 2016 big awful jam
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
using System.Collections.Generic;
using Main;
namespace Overworld
{
public class OverworldManager : MonoBehaviour
{
@Xibanya
Xibanya / ColorFade.cs
Created August 8, 2016 16:48
passes info into a pixel shader
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
namespace Everest
@Xibanya
Xibanya / ColorFade.fx
Created August 8, 2016 16:49
simple fade shader
sampler ColorMapSampler : register(s0);
float filterRed;
float filterGreen;
float filterBlue;
float amount;
float4 PixelShaderFunction(float2 TextureCoordinate : TEXCOORD0) : COLOR0
{
require 'sinatra'
require 'nokogiri'
PAGE_URL = 'http://forums.somethingawful.com/misc.php?action=showsmilies' #'emotes.html'
get '/emote/:name' do
page = Nokogiri::HTML(open(PAGE_URL))
search = params['name']
items = page.css('div.text')
items.each do |item|
require 'sinatra'
require 'open-uri'
require 'nokogiri'
get '/' do
'Congrats, you did a GET'
status 200
headers \
'Content-Type' => 'application/json'
body '{"response_type": "in_channel","text": "It works!"}'
@Xibanya
Xibanya / index.html
Created March 22, 2017 19:25
compare front pages
<!DOCTYPE html>
<html>
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>