Skip to content

Instantly share code, notes, and snippets.

View Pegolon's full-sized avatar

Markus Kirschner Pegolon

View GitHub Profile
@Pegolon
Pegolon / xml_to_yaml.rb
Last active March 29, 2019 12:52
Convert XML to YAML
require 'active_support/core_ext/hash/conversions'
require 'yaml'
source_file_path='/path/to/file.xml'
target_file_path='/path/to/file.yaml'
File.write(target_file_path, Hash.from_xml(File.read(source_file_path)).to_yaml)
@Pegolon
Pegolon / launch.json
Created April 4, 2019 13:16
Debug Rake with Visual Studio Code
{
"version": "0.2.0",
"configurations": [
{
"name": "Rake",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "/usr/bin/rake",
"env": {
@Pegolon
Pegolon / Directory.Build.props
Created August 13, 2020 10:29
Use C# projects at the same time on Windows and Mac (and even Linux)
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Choose>
<When Condition="'$(OS)' == 'Windows_NT'">
<PropertyGroup>
<BaseIntermediateOutputPath>B:/$(MSBuildProjectFile) Intermediate/</BaseIntermediateOutputPath>
<OutputPath>B:/$(MSBuildProjectFile) Output/$(Configuration)/</OutputPath>
</PropertyGroup>
</When>
<Otherwise>
@Pegolon
Pegolon / Main.purs
Last active October 31, 2022 19:51
module Main where
import Prelude
import Effect (Effect)
import Effect.Console (log)
import TryPureScript (render, withConsole)
main :: Effect Unit
main = render =<< withConsole do
log "Hello, world!"