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
require 'lastfm' | |
# you can get this module here https://github.com/youpy/ruby-lastfm | |
# also, follow the instructions there to get your account info (like api key, secret and session key) | |
lastfm = Lastfm.new("api_key", "api_secret") | |
lastfm.session = "your session key" | |
# this is actually embarrassing, but I really didn't find a method to get this info | |
# in the documentation. Go to http://ws.audioscrobbler.com/2.0/?method=library.gettracks&api_key=XXXX&user=XXX | |
# get the totalPages param and paste it down there, after the '=' sign |
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
https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1876 | |
https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1201 | |
https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1039 | |
https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=2160 | |
https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=48 | |
https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=949 | |
https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1083 | |
https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=515 | |
https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1724 | |
https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=3146 |
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
#!/usr/bin/env python | |
# @(#) $Jeannot: test1.py,v 1.11 2005/01/06 21:22:39 js Exp $ | |
# Import PuLP modeler functions | |
from pulp import * | |
# A new LP problem | |
prob = LpProblem("save-pokemon", LpMaximize) | |
# Variables |
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
private Mat fourPointTransform(Mat src, Point[] pts) { | |
double ratio = src.size().height / 500; | |
int height = Double.valueOf(src.size().height / ratio).intValue(); | |
int width = Double.valueOf(src.size().width / ratio).intValue(); | |
Point tl = pts[0]; | |
Point tr = pts[1]; | |
Point br = pts[2]; | |
Point bl = pts[3]; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<?import java.lang.*?> | |
<?import java.util.*?> | |
<?import javafx.scene.control.*?> | |
<?import javafx.scene.layout.*?> | |
<?import javafx.scene.paint.*?> | |
<?import javafx.scene.text.*?> | |
<VBox prefHeight="400.0" prefWidth="640.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/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
#if($field.modifierStatic) | |
static ## | |
#end | |
@Bindable | |
$field.type ## | |
#set($name = $StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project).substring(1)))) | |
#if ($field.boolean && $field.primitive) | |
#if ($StringUtil.startsWithIgnoreCase($name, 'is')) | |
#set($name = $StringUtil.decapitalize($name)) | |
#else |
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
JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL01lZGlhQm94IFswIDAgNTk1LjI4MCA4NDEuODkwXQovVHJpbUJveCBbMC4wMDAgMC4wMDAgNTk1LjI4MCA4NDEuODkwXQovUmVzb3VyY2VzIDIgMCBSCi9Hcm91cCA8PCAvVHlwZSAvR3JvdXAgL1MgL1RyYW5zcGFyZW5jeSAvQ1MgL0RldmljZVJHQiA+PiAKL0NvbnRlbnRzIDQgMCBSPj4KZW5kb2JqCjQgMCBvYmoKPDwvRmlsdGVyIC9GbGF0ZURlY29kZSAvTGVuZ3RoIDYzOTk+PgpzdHJlYW0KeJztPcuOHMlxdeZX1MGHXUAs5vuxN5rk0iMsuRY5XBjy+jDikBQNksOdWVL6Nl910D/4ZuxhYQE67U0nR2RVPqq6ursqspqWAKLRXd3R+YiMV0a+IlvR/voW67Sx7R9u/fN5e+dr0XLeMcba85ftg/Nb/fdXkAafD2/defiUt69uUh5Id33r3/+jZe1l+u/z8/Pz8/Pz8x/t2YJVc2Dlys/rV7ekcB1nsrWeddyp1nVCyPZ2/7h+0b7ck02aTgqdsmkLGdiCfLE6xztveKxO8E5btaS+IV+s73jGoUIlWKeMXNu+mG1x+7zstMr5uNKdV+54Ri19p7xajWdsHhedUIme0nYaExxv35Avtu94xtjAIWNq4NGcqYVrUR2aKK3qbM63lIMx21oOxnyrObgfz1vRCfEBs94HGUC2M8IPoB9aDlplBfgdrHWq09q1CgoVULiRnbGuff62vXPG2/tX7W92NJ11Rhr0XoJXU34+eXgLyKC4A71V0CrTvm0HABbMjGrftE9n0mgO+PAECYkmsJxqpqgImk+0lCrAUKAEEqX/ZjjQHm2C6gQTPU3EmCbRs4se3SIaGWAkR5OIqCLSkptOCZMgh5GWneM6Id2X+qqFPy18F0BXp4GXtj2/bNsvmvbL9vw/ISkgvQ9Z |
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
#!/bin/bash | |
echo "===============================================" | |
echo "| :: SETANDO A CONFIGURACAO DO IPTABLES :: |" | |
echo "===============================================" | |
### Passo 1: Limpando as regras ### | |
/sbin/iptables -F INPUT | |
/sbin/iptables -F OUTPUT | |
/sbin/iptables -F FORWARD | |
echo "Limpando todas as regras .................[ OK ]" |
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
import java.io.*; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.rmi.RemoteException; | |
import java.rmi.server.ServerNotActiveException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.HashSet; | |
import java.util.Timer; | |
import java.util.TimerTask; |
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.vup.androidapp.ui.adapter; | |
import android.databinding.DataBindingUtil; | |
import android.databinding.ObservableBoolean; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import java.util.ArrayList; |
OlderNewer