This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#gem install rb-libsvm | |
require 'libsvm' | |
class Predictor | |
def initialize | |
parameter = Libsvm::SvmParameter.new | |
parameter.cache_size = 3 # in megabytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.fredericci.test; | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.fredericci.test; | |
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fix major="4" minor="1"> | |
<header> | |
<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"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ApplicationHelper | |
def teste | |
#profile_url = Net::HTTP.get_response(URI.parse("http://graph.facebook.com/#{100000335750045}/picture?type=large"))['location'] | |
#second_image = Net::HTTP.get_response(URI.parse("https://taylorgraceauthor.files.wordpress.com/2015/11/6917465-french-flag-wallpaper.jpg"))['location'] | |
#Deve ter transparencia | |
first = "#{Rails.public_path}/mask.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find ./ -name "*.jar" | xargs grep org/springframework/data/mapping/context/MappingContext.class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create angular project | |
ng new my-app | |
2. Install bootstrap dependencies | |
npm install --save @ng-bootstrap/ng-bootstrap bootstrap@4.1.3 font-awesome | |
3. Add the lines below in scripts array at angular.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package be.schaubroeck.golf.liquibase.corrections; | |
import org.apache.commons.io.FileUtils; | |
import org.apache.commons.lang3.text.StrSubstitutor; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.HashMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.demo; | |
import lombok.AllArgsConstructor; | |
import lombok.Data; | |
import lombok.NoArgsConstructor; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; |