Skip to content

Instantly share code, notes, and snippets.

View ream88's full-sized avatar

Mario Uher ream88

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>
TODO: unresolved issues
text:
"p &lt;&lt; end
@ream88
ream88 / fade.scss
Created March 21, 2014 18:46
Angular Fade animation
.fade {
@include transition(opacity 0.25s cubic-bezier(0.250, 0.460, 0.450, 0.940));
&.ng-enter {
opacity: 0;
&.ng-enter-active {
opacity: 1;
}
}
@ream88
ream88 / Gemfile
Last active August 29, 2015 13:58
bundle; ruby fail.rb
source 'http://rubygems.org'
# Working
# gem 'mongoid'
# gem 'mongoid-tree'
# Not working
gem 'mongoid', github: 'mongoid/mongoid'
gem 'mongoid-tree', github: 'benedikt/mongoid-tree', branch: 'mongoid-4.0'
gem 'mongoid-versioning', github: 'haihappen/mongoid-versioning'
require "mechanize"
agent = Mechanize.new
agent.user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) " + \
"AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5" + \
" Safari/536.30.1"
page = agent.get "https://rubytapas.dpdcart.com/subscriber/content"
login_form = page.form_with id:"login-form"
login_form.field_with(id:"username").value = tapas_username
login_form.field_with(id:"password").value = tapas_password
@ream88
ream88 / designer.html
Created July 14, 2014 12:25
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../google-map/google-map-search.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-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
module ActionView::Helpers
module RenderSuperHelper
def render(*args, &block)
options = args.clone.extract_options!
if options[:view_paths]
@view_paths = lookup_context.view_paths
lookup_context.view_paths = options[:view_paths]
end
@ream88
ream88 / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@ream88
ream88 / Gemfile
Created August 21, 2015 09:20
Never include GitHub access tokens in your Gemfile again
# Be sure to have GITHUB_TOKEN set to your access token... via `export` or via .rbenv-vars for example.
source 'https://rubygems.org'
git_source(:private_github) { |repo_name| "https://#{ENV.fetch('GITHUB_TOKEN')}:x-oauth-basic@github.com/#{repo_name}.git" }
gem 'my-super-secret-gem', private_github: 'haihappen/my-super-secret-gem'
@ream88
ream88 / x
Created December 3, 2008 12:02
CmdUtils.CreateCommand({
name: "delicious",
homepage: "http://ryan.codecrate.com/",
author: { name: "Ryan Sonnek", email: "ryan@codecrate.com"},
contributors: ["Ryan Sonnek"],
license: "MIT",
description: "Tags the current site using delicious",
icon: "http://delicious.com/favicon.ico",
help: "Save the current url to delicious with the tags input by the user. Any selected text on the page will be recorded as the note.",
/*
=skin=
@name Custom
@author You
@homepage http://www.yourpage.com
@email you@you.com
@license MPL/LGPL/GPL
=/skin=