Skip to content

Instantly share code, notes, and snippets.

const people = [
{
age: 21,
eyeColor: 'blue',
firstName: 'Bowman',
lastName: 'Parks',
},
{
age: 49,
eyeColor: 'green',
@vesheff
vesheff / 0_reuse_code.js
Created June 24, 2017 07:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
:: Edit the line below to match your path to the ffmpeg executable.
set path2exe=C:\Users\mvesheff.PROGRESS\Documents\ShareX\Tools\ffmpeg.exe
(for %%i in (*.mp4) do @echo file '%%i') > list.txt
%path2exe% -f concat -i list.txt -c copy output.mp4
del list.txt
@vesheff
vesheff / AutoMapperConfig.cs
Last active February 9, 2016 22:41
Automapper 4.2 configuration
public static class AutoMapperConfig
{
public static IList<Type> GetTypesInAssembly()
{
var assemblies = new string[] { Assemblies.ViewModels };
var types = new List<Type>();
foreach (var assembly in assemblies.Select(Assembly.Load))
{
types.AddRange(assembly.GetExportedTypes());