Skip to content

Instantly share code, notes, and snippets.

View itsdatboi.cs
namespace CvsProject
{
internal class Program
{
public static void Main(string[] args)
{
var filename = "csvfile.csv";
var reader = new CsvReader(filename);
reader.ParseContent();
View C# backing fields.cs
//idiotcoder.com
class Post
{
private long timestamp = 0;
public long HourAgo {
get { return timestamp - (60 * 60); }
}
public Post(long unixTimestamp)
@exts
exts / gist:f11259874bb9f781192f
Last active Mar 28, 2016
kotlin for loop is weird
View gist:f11259874bb9f781192f
//normal for in
fun fizzBuzz(start: Int = 1, end: Int = 15) {
for(foobar in start..end) {
println(when {
foobar % 5 == 0 && foobar % 3 == 0 -> "FizzBuzz"
foobar % 3 == 0 -> "Fizz"
foobar % 5 == 0 -> "Buzz"
else -> "$foobar"
})
}
View gist:d96455494a3e79b7dbe0
interface ConfigFileInterface
{
public function load();
public function save();
}
class YamlConfigFile implements ConfigFileInterface
{
public function load()
{