Skip to content

Instantly share code, notes, and snippets.

@smockle
smockle / BundleConfig.cs
Last active August 31, 2018 11:49
Demonstrates how to use BundleTransformer in a C# ASP.NET MVC web application.
using System.Web;
using System.Web.Optimization;
using BundleTransformer.Core.Transformers;
namespace Project.App_Start {
public class BundleConfig {
public static void RegisterBundles(BundleCollection bundles) {
var styles = new Bundle("~/bundles/stylesheets")
.Include(
"~/Assets/Styles/*.css",
@emotality
emotality / duplicate_line_xcode.md
Last active April 6, 2024 04:23
Xcode - Duplicate Line key binding

NOTE (2022-07-09): Xcode finally added this functionality in Xcode 14, please see release notes here:

New Features in Xcode 14 Beta 3
When editing code, the Edit > Duplicate menu item and its corresponding keyboard shortcut now duplicate the selected text — or the line that currently contains the insertion point, if no text is selected. (8614499) (FB5618491)


Xcode line duplicate

Bind keys to duplicate lines in Xcode

@NiPfi
NiPfi / FirestoreRepository.java
Created April 18, 2018 07:36
Basic implementation of a repository pattern for Firebase Firestore
package ch.jojoni.jamplan.model.repository;
import android.support.annotation.NonNull;
import android.util.Log;
import com.google.android.gms.tasks.Continuation;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.firestore.CollectionReference;
import com.google.firebase.firestore.DocumentReference;