Skip to content

Instantly share code, notes, and snippets.

View VilladsClaes's full-sized avatar
🎯
Forsøger at forstå Git

Villads Claes VilladsClaes

🎯
Forsøger at forstå Git
View GitHub Profile
@maderaka
maderaka / Convert.java
Created September 2, 2015 07:10
Convert text file (.txt) into CSV file using Java
import java.io.*;
public class Convert {
public static void main(String[] args) {
System.out.println("Initialize ...");
Read read = new Read("soal01.txt");
Print print = new Print();
for (int i = 1; i <= 3; i++) {
try{
print.setFileName("jawaban"+i+".csv");
@cmatskas
cmatskas / fileupload.cs
Created October 5, 2015 22:43
File Upload C#
[HttpPost]
public async Task<JsonResult> UploadHomeReport(string id)
{
try
{
foreach (string file in Request.Files)
{
var fileContent = Request.Files[file];
if (fileContent != null && fileContent.ContentLength > 0)
{
[
{
"abbr": "a-",
"origin": "atom"
},
{
"abbr": "AB",
"origin": "andelsboligforening"
},
{
@malarkey
malarkey / custom-properties-boilerplate.css
Created March 14, 2019 20:02
CSS Custom Properties boilerplate
/* CSS Custom Properties */
:root {
--font-family: 'Georgia', serif;
--font-family-alt: 'Helvetica', Arial, sans-serif;
--font-weight: 400;
--font-weight-bold: 700;
--font-weight-black: 900;
/* 3:4 perfect fourth scale */