bot_quota 20
sv_cheats 1
sv_infinite_ammo 1
mp_teammates_are_enemies 1
mp_damage_headshot_only 1
mp_freezetime 1
| # Ruby version from https://github.com/derekhh/HackerRank/blob/master/mathematics/combinatorics/lexicographic-steps.cpp | |
| # Build the 'Lower Pascal matrix' | |
| # http://rosettacode.org/wiki/Pascal_matrix_generation#Ruby | |
| ng = (g = 0..20).collect{ [] } | |
| g.each { |i| g.each { |j| ng[i][j] = j == 0 ? 1 : i < j ? 0 : ng[i - 1][j - 1] + ng[i - 1][j] } } | |
| # Uncomment the line bellow to print the matrix | |
| # ng.each { |i| i.each { |j| print "#{j}\t" }; puts } | |
| t = gets.chomp.to_i |
| package net.tardivo.prosoft.excel.reader; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.InputStream; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.regex.Pattern; | |
| import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
| package com.walmart.customer.services.frontend.domain.test; | |
| import java.sql.Connection; | |
| import javax.sql.DataSource; | |
| import org.dbunit.database.DatabaseConnection; | |
| import org.dbunit.database.IDatabaseConnection; | |
| import org.dbunit.dataset.IDataSet; | |
| import org.dbunit.dataset.xml.FlatXmlDataSetBuilder; |
| import java.io.DataInputStream; | |
| import java.io.File; | |
| import java.io.FileWriter; | |
| import java.io.PrintStream; | |
| import java.net.URL; | |
| import java.net.URLConnection; | |
| public class CorreiosCarrierTracker { | |
| public static void main(String[] args) { |
| <?xml version="1.0" encoding="iso-8859-1" ?> | |
| <sroxml> | |
| <versao>1.0</versao> | |
| <qtd>1</qtd> | |
| <TipoPesquisa>Lista de Objetos</TipoPesquisa> | |
| <TipoResultado>Todos os eventos</TipoResultado> | |
| <objeto> | |
| <numero>SW371675211BR</numero> | |
| <evento> | |
| <tipo>BDE</tipo> |
| package com.liferayinaction.portlet; | |
| import java.io.IOException; | |
| import javax.portlet.ActionRequest; | |
| import javax.portlet.ActionResponse; | |
| import javax.portlet.GenericPortlet; | |
| import javax.portlet.PortletException; | |
| import javax.portlet.PortletMode; | |
| import javax.portlet.PortletPreferences; |
| class ValidadorCPF | |
| REGEX = /\A(\d{3}\.?){2}\d{3}\-?\d{2}\Z/ | |
| def self.valido?(cpf) | |
| return false unless REGEX =~ cpf | |
| arr = cpf.scan(/\d/).take(9) | |
| arr << calcular_dv(arr) |
| JAXBContext jaxbContext = JAXBContext.newInstance(Profile.class); | |
| Marshaller marshaller = jaxbContext.createMarshaller(); | |
| marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); | |
| marshaller.marshal(profile, System.out); |