Skip to content

Instantly share code, notes, and snippets.

View yv84's full-sized avatar
๐Ÿ’
Focusing

Vladimir Yudintsev yv84

๐Ÿ’
Focusing
View GitHub Profile
@yv84
yv84 / loan.py
Last active June 8, 2017 03:33
loan
def differ(loan, rate, t, accuracy=2):
list_pay_per_month = []
body_of_loan = loan
month_count = t * 12
body_per_month = loan / month_count
sum = 0
for _ in range(month_count):
interest = body_of_loan * rate / 12
pay_per_month = interest + body_per_month
@stuart-marks
stuart-marks / DynamicFiltering.java
Created April 8, 2014 00:12
Dynamic filtering using Java 8 streams.
import java.util.*;
import java.util.function.*;
import java.util.stream.*;
import static java.util.stream.Collectors.*;
import static java.util.Comparator.*;
/**
* http://stackoverflow.com/questions/22845574/how-to-dynamically-do-filtering-in-java-8
*
@sachin-handiekar
sachin-handiekar / pom.xml
Created August 26, 2013 15:11
CXF Codegen plugin - WSDL2Java
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
@jhjguxin
jhjguxin / nginx-403-forbidden-error-hosting-in-user-home-directory.md
Created August 12, 2013 05:40
nginx 403 forbidden error when server static file under user home directory