Skip to content

Instantly share code, notes, and snippets.


Dennys dennysfredericci

View GitHub Profile
dennysfredericci /
Created Jul 9, 2018
Find class in jar fiels
find ./ -name "*.jar" | xargs grep org/springframework/data/mapping/context/MappingContext.class
View ApplicationHelper.rb
module ApplicationHelper
def teste
#profile_url = Net::HTTP.get_response(URI.parse("{100000335750045}/picture?type=large"))['location']
#second_image = Net::HTTP.get_response(URI.parse(""))['location']
#Deve ter transparencia
first = "#{Rails.public_path}/mask.png"
View FIX41.xml
<fix major="4" minor="1">
<field name="BeginString" required="Y"/>
<field name="BodyLength" required="Y"/>
<field name="MsgType" required="Y"/>
<field name="SenderCompID" required="Y"/>
<field name="TargetCompID" required="Y"/>
<field name="OnBehalfOfCompID" required="N"/>
<field name="DeliverToCompID" required="N"/>
<field name="SecureDataLen" required="N"/>
dennysfredericci /
Created Oct 16, 2014
Tibco Rendezvous Listener Sample
import java.util.Date;
import com.tibco.tibrv.Tibrv;
import com.tibco.tibrv.TibrvException;
import com.tibco.tibrv.TibrvListener;
import com.tibco.tibrv.TibrvMsg;
import com.tibco.tibrv.TibrvMsgCallback;
import com.tibco.tibrv.TibrvRvdTransport;
dennysfredericci /
Created Oct 16, 2014
Tibco Rendezvous Sender Sample
import com.tibco.tibrv.Tibrv;
import com.tibco.tibrv.TibrvMsg;
import com.tibco.tibrv.TibrvRvdTransport;
public class TibcoSender
public static void main(String[] args) throws Exception
dennysfredericci / search-ul-li-item.js
Created Jul 22, 2014
A simple jquery code to search a text inside of li tag
View search-ul-li-item.js
//searchText is a input type text
$('#searchText').bind('keyup', function() {
var searchString = $(this).val();
$("ul li").each(function(index, value) {
currentName = $(value).text()
if( currentName.toUpperCase().indexOf(searchString.toUpperCase()) > -1) {
dennysfredericci / machine_learning.rb
Created Jul 21, 2014
Machine Learning example using libsvm
View machine_learning.rb
#gem install rb-libsvm
require 'libsvm'
class Predictor
def initialize
parameter =
parameter.cache_size = 3 # in megabytes
dennysfredericci / application.html.erb
Created Apr 21, 2014
A simple html page to read informations from facebook
View application.html.erb
<title>Fluid Canvas HTML Example </title>
<div id="allContent" class="span12">
<form class="form-horizontal">
import org.jdom2.Document;
import org.jdom2.input.SAXBuilder;
import org.jdom2.output.Format;
import org.jdom2.output.XMLOutputter;
public class XmlFormatter
dennysfredericci / web.xml
Created Jul 2, 2013
web.xml spec 3.0 sample
View web.xml
<web-app xmlns=""