Skip to content

Instantly share code, notes, and snippets.

View ricardovf's full-sized avatar

Ricardo Fritsche ricardovf

View GitHub Profile
@ricardovf
ricardovf / install-mono.rb
Created June 2, 2011 20:13
Chef recipe to download tarballs, extract, and compile them.
#
# Cookbook Name:: mono
# Recipe:: install-mono
#
# Copyright 2011, Medidata Solutions, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@ricardovf
ricardovf / org.php.php-fpm.plist
Created February 14, 2012 19:04
PHP-FPM Launch configuration for Mac OS X
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd" >
<plist version='1.0'>
<dict>
<key>Label</key><string>org.php.php-fpm</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sbin/php-fpm</string>
<string>--fpm-config</string>
<string>/usr/local/etc/php-fpm.conf</string>
@ricardovf
ricardovf / com.meritt.oitenta.plist
Created February 14, 2012 20:05
Redirect port 80 to 8080 on OSX
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.meritt.oitenta</string>
<key>Program</key>
<string>/sbin/ipfw</string>
<key>ProgramArguments</key>
<array>
DefinitionBlock ("dsdt.aml", "DSDT", 2, "INTEL ", "DH61DL ", 0x00000012)
{
Name (SP1O, 0x2E)
Name (IOCE, 0x87)
Name (IOCL, 0xAA)
Name (SI1P, One)
Name (IOHB, Zero)
Name (IOHL, 0x10)
Name (TCBR, 0xFED08000)
Name (TCLT, 0x1000)
jQuery.fn.supersleight = function(settings) {
settings = jQuery.extend({
imgs: true,
backgrounds: true,
input_src: true,
shim: ‘data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAA AACXZwQWcAAAABAAAAAQDH lV/tAAAAAnRSTlMA/1uRIrUAAA AKSURBVAjXY/gPAAEBAQAbtu 5WAAAAAElFTkSuQmCC’,
apply_positioning: true
}, settings);
return this.each(function(){
@ricardovf
ricardovf / index.html
Created October 23, 2012 13:19
A CodePen by Michael Martin-Smucker. CSS Stacked Paper Effect - Creating a messy stack of papers using the magic of CSS transforms and generated content.
<div class="letter">
<p>Dear Friends,</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent euismod porta tempor. Donec pulvinar turpis nec velit pellentesque quis rhoncus sapien facilisis. Mauris quis massa dui, rhoncus viverra quam. Nulla tempus, augue ut consectetur facilisis, arcu elit pellentesque arcu, sed rutrum orci turpis pulvinar augue. Donec eget arcu mauris. Vestibulum tristique consequat lacus eget laoreet. Integer sed nisl sed nibh pulvinar ornare quis nec quam. Aenean rhoncus ligula ut lectus placerat a commodo quam vulputate. In eu metus turpis.</p>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus facilisis erat in nibh auctor at aliquet velit vestibulum. Curabitur turpis diam, malesuada eu consequat eget, ultricies sed nunc. Aenean sed odio massa. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ornare vulputate congue. Quisque leo metus, condimentum nec molestie et, egestas luctus libero.</p>
<p>M
@ricardovf
ricardovf / index.html
Created October 23, 2012 13:22
A CodePen by vcurd. Depth of field effect with SVG filters - Depth of field effect on hover. Based on PNGs with alpha transparency and SVG filters in CSS3. Currently only works in Chrome.
<!-- This depth of field effect uses SVG filters in CSS3 it currently only works in Chrome -->
<div id="photoframe">
<img id="full" src="https://dl.dropbox.com/u/32918455/camera%20pics/full.png" />
<img class="blurable" data-blurindex="10" id="fullblur" src="https://dl.dropbox.com/u/32918455/camera%20pics/full.png" />
<img class="blurable" data-blurindex="8" id="lenses" src="https://dl.dropbox.com/u/32918455/camera%20pics/lens.png" />
<img class="blurable" data-blurindex="6" id="cameras" src="https://dl.dropbox.com/u/32918455/camera%20pics/camera.png" />
<img class="blurable" data-blurindex="4" id="film" src="https://dl.dropbox.com/u/32918455/camera%20pics/film.png" />
<img class="blurable" data-blurindex="2" id="filters" src="https://dl.dropbox.com/u/32918455/camera%20pics/filters.png" />
<img class="blurable" data-blurindex="0" id="loupes" src="https://dl.dropbox.com/u/32918455/camera%20pics/loupe.png" usemap="loupemap" />
<map id="loupemap" name="loupemap">
@ricardovf
ricardovf / index.html
Created October 23, 2012 13:22
A CodePen by Jeff Powers. Pure CSS Ribbon - A Clean, Simple, CSS Ribbon.
<div id="ribbon">
<span id="content">Hello There</span>
</div>
@ricardovf
ricardovf / index.html
Created October 23, 2012 13:25
A CodePen by Hakim El Hattab. Avgrund - A modal concept with a visible level of depth between the page and modal layers.
<article class="avgrund-contents">
<h1>Avgrund</h1>
<p>
A modal concept with a visible level of depth between the page and modal layers. Click a button below to give it a try.
</p>
<button onclick="avgrund.activate( 'stack' );">Stack it</button>
<button onclick="avgrund.activate();">Grow it</button>
<p>
Uses CSS transforms to scale components and CSS filters to blur the page.
</p>
@ricardovf
ricardovf / saida t2
Last active September 27, 2017 01:09
------------------------------------------------
Método de Newton tracional com multiplicidade 1
------------------------------------------------
Polinômio original:
P(x) = + 1x^11 - 3.4x^10 + 2.35x^9 + 4.32x^8 - 7.1685x^7 + 1.56006x^6 + 3.287061x^5 - 2.480058x^4 + 0.531441x^3 + 0x^2 + 0x^1 + 0
Reduzindo grau do polinômio 3 vezes com a raíz de valor 0:
P(x) = + 1x^10 - 3.4x^9 + 2.35x^8 + 4.32x^7 - 7.1685x^6 + 1.56006x^5 + 3.287061x^4 - 2.480058x^3 + 0.531441x^2 + 0x^1 + 0
P(x) = + 1x^9 - 3.4x^8 + 2.35x^7 + 4.32x^6 - 7.1685x^5 + 1.56006x^4 + 3.287061x^3 - 2.480058x^2 + 0.531441x^1 + 0
P(x) = + 1x^8 - 3.4x^7 + 2.35x^6 + 4.32x^5 - 7.1685x^4 + 1.56006x^3 + 3.287061x^2 - 2.480058x^1 + 0.531441