Skip to content

Instantly share code, notes, and snippets.

Avatar
🤮
puke nuke

Victor Borja vic

🤮
puke nuke
View GitHub Profile
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@vic
vic / README
Last active Aug 29, 2015
Patos as a service
View README
Patos demo
How to serve:
`python -m SimpleHTTPServer`
open http://localhost:8000
@vic
vic / index.html
Created Feb 23, 2015
angular editable choices
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script>
var foo = {
choices: ['uno', 'dos']
};
@vic
vic / index
Created Mar 4, 2015
Angular example
View index
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script src="script.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body ng-app="stories" >
@vic
vic / elfos.rb
Created Mar 5, 2015
Elfos que aprenden a escribir y morir por convivir con los humanos.
View elfos.rb
module Aliveness
attr_accessor :alive
def initialize
@alive = true
end
end
module DieAbility
include Aliveness
@vic
vic / index.html
Created Jun 2, 2015
Framework7 router.back bug?
View index.html
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="bower_components/framework7/dist/css/framework7.css">
<link rel="stylesheet" href="bower_components/framework7/dist/css/framework7.themes.css">
</head>
<body>
@vic
vic / InputAutoCfg.ini
Created Aug 1, 2015
Wii U Pro for mupen84 using wjoy
View InputAutoCfg.ini
[Wiimote (8c-cd-e8-bf-99-de)]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 2000,2000
AnalogPeak = 17000,17000
DPad R = button(15)
DPad L = button(13)
View Main.java
import org.jruby.*;
/*
The use case I have:
- Create a JRuby runtime
- Load a gem on it .. actually that gem ("buildr") requires many other gems and takes a lot of time to get them loaded (about 2secs)
- Use that preloaded runtime to create clones
- Load a buildfile on that clone, without affecting the original runtime
- drop the used cloned runtime,
View README
This example shows how to use a DRb client/server
with buildr 1.3.3.
Invoke this file the first time with a --drb flag
to start the server. If no --drb flag is present
we connect to the server.
Features:
- Execution of tasks on a previously loaded buildfile
- buildfile reloading if modified.# - NO CLIENT OUTPUT redirection is implemented.
View VicGmail.js
// ==UserScript==
// @name Gmail w/ Collapsible & Minimalist Inbox plus Google Calendar, Reader, Notebook, etc... Seamless Integration
// @namespace mail.google.com
// @include http://mail.google.com/*
// @include https://mail.google.com/*
// ==/UserScript==
var USER_CONFIGURATION =
{
ELEMENTS: //Place in order the pages you would like to load. Placing mail in the list will may it collapsible. Other choices are: reader, calendar, notebook or groups (must be lowercase.)