Skip to content

Instantly share code, notes, and snippets.

View intfrr's full-sized avatar
🎯
Focusing

Kris Rott intfrr

🎯
Focusing
View GitHub Profile
anonymous
anonymous / index.html
Created June 29, 2015 21:02
Responsive Facebook // source http://jsbin.com/denabi
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<meta charset="utf-8">
<title>Responsive Facebook</title>
<style id="jsbin-css">
@media (max-width:1100px) {
@intfrr
intfrr / patch subgroups redmine
Last active August 29, 2015 14:27 — forked from Thanatermesis/patch subgroups redmine
This is an old patch for redmine to create subgroups feature, not works in recent redmine's
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index db56eff..06f9284 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -106,33 +106,33 @@ class GroupsController < ApplicationController
end
end
- def add_users
+ def add_principals
@intfrr
intfrr / elasticoverflow.rb
Created May 4, 2011 12:46 — forked from karmi/elasticoverflow.rb
Importing and searching RSS with ElasticSearch and Tire
# =======================================================
# Importing and searching RSS with ElasticSearch and Tire
# =======================================================
#
# This script downloads, parses and indexes Stackoverflow RSS feed with ElasticSearch
# via the [Tire](https://github.com/karmi/tire) Rubygem.
#
# Requirements
# ------------
#
@intfrr
intfrr / .gitignore
Created March 27, 2012 03:57 — forked from pcardune/.gitignore
Facebook command-line client helper
.fb_access_token
.fbconsole.py
@intfrr
intfrr / 7segmentos.cpp
Created June 10, 2012 09:42 — forked from yesidays/7segmentos.cpp
Leer y escribir en display de 7 segmentos
#include <stdio.h>
#include <conio.h>
int main(void){
int i,j,k,cont;
char c;
int x[]={6,91,79,102,109,124,7,127,103,63};
int y[]={119,124,57,94,121,113,125,118,6,14,56,63,115,109,62,110};
char user[]={'a','b','c','d','e','f','g','h','i','j','l','o','p','s','u','y'};
char aux[5];
char cam[5];
@kellyrob99
kellyrob99 / KulerThemeVisualization.groovy
Created June 17, 2012 20:19
Simple SwingBuilder application that reads in a file of mapped color themes and visualizes the results
import groovy.swing.*
import java.awt.*
import javax.swing.*
/**
* Reads in a map of color themes, each with five hex color values, and displays them in a Swing component.
*/
assert args.size() == 1, 'The name or path to a file containing a themeMap script variable must be supplied on the command line'
def themeMapFileName = args[0]
@kellyrob99
kellyrob99 / KulerScraper.groovy
Created June 17, 2012 19:34
Reads RSS feeds from Adobe kuler site and extracts the hexadecimal representation of each five element theme, writing those values to a file.
/**
* Reads RSS feeds from kuler and extracts the hexadecimal representation of each five element theme, writing those
* values to a file.
*/
def feeds = [
new URL("http://kuler-api.adobe.com/feeds/rss/get.cfm?itemsPerPage=100&listType=rating"),
new URL("http://kuler-api.adobe.com/feeds/rss/get.cfm?itemsPerPage=100&listType=popular")
]
def mappedThemes = [:]
def slurp = {rssXML, themes ->
@kellyrob99
kellyrob99 / markupBuilderTesting.groovy
Created June 17, 2012 21:08
Create iterm2 plist xml color preset files ready for import.
import groovy.xml.StreamingMarkupBuilder
import groovy.xml.XmlUtil
import java.awt.Color
/**
* Reads in a map of color themes, each with five hex color values, and maps them to an iterm color preset plist file.
*/
assert args.size() == 1, 'The name or path to a file containing a themeMap script variable must be supplied on the command line'
def themeMapFileName = args[0]
@josejuan
josejuan / microProber.html
Created July 10, 2012 20:35
micro probador de teoremas
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Micro Verificador de Teoremas</title>
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script>
function MicroVerificador(reglas, consultas) {
var w = ["siempre_que", "no", "y", "o", "implica_que", "cierto", "falso", "(", ")"];
var clear = function(s){
@intfrr
intfrr / generate_archives.rb
Created November 30, 2015 16:08 — forked from stympy/generate_archives.rb
Archive generator plugin for jekyll
# Jekyll archive page generator with pagination.
#
# Based on the category generator from
# http://recursive-design.com/projects/jekyll-plugins/,
# which is copyright (c) 2010 Dave Perrett,
# http://recursive-design.com/ and is licensed under the MIT
# license (http://www.opensource.org/licenses/mit-license.php), and
# on the pagination code from Jekyll itself.
#
# This code is copyright (c) 2011 Benjamin Curtis, and is licensed