Skip to content

Instantly share code, notes, and snippets.

View ENikS's full-sized avatar

Eugene Sadovoi ENikS

  • Newport Beach, CA
View GitHub Profile
@vbfox
vbfox / Mvvm.cs
Created December 7, 2011 23:56
CommandBindings from ICommands for WPF MVVM
namespace BlackFox
{
using System;
using System.Windows;
static class Mvvm
{
public static readonly DependencyProperty CommandBindingsProperty = DependencyProperty.RegisterAttached(
"CommandBindings", typeof(MvvmCommandBindingCollection), typeof(Mvvm),
new PropertyMetadata(null, OnCommandBindingsChanged));
@dazfuller
dazfuller / Data.java
Created January 4, 2012 12:55
Method for transforming XML to XML using XSLT for Java/Android
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.StringReader;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
@domenic
domenic / 0-github-actions.md
Last active May 26, 2024 07:43
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with GitHub Actions

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:

  • It is much easier and requires less steps, because you are already authenticated with GitHub, so you don't need to share secret keys across services like you do when coordinate Travis CI and GitHub.
  • It is free, with no quotas.
  • Anecdotally, builds are much faster with GitHub Actions than with Travis CI, especially in terms of time spent waiting for a builder.