Skip to content

Instantly share code, notes, and snippets.

@tamboer
tamboer / README.md
Created August 3, 2020 11:18 — forked from roachhd/README.md
a quick-and-dirty guide to Vim.

a quick-and-dirty guide to Vim

![][1]

In the world of text editors, there's a plethora of options out there. If you've ever Googled "how to edit HTML sites" or some such, you know what we mean. Allow us, then, to introduce you to VIM, a free website editor that offers many of the same features as Adobe Dreamweaver, and runs on just about every desktop platform. Specifically, it comes by default on the vast majority of Linux distributions, OS X and commercial Unix systems. (It's available to install on Windows, too.) And did we mention it's free? That command line UI isn't necessarily self-explanatory, though, so join us after the break for a quick crash course to help you get started.

Getting started

If you're running OS X or Linux, start out by opening a terminal. Now type "vim" et voilà: you're using VIM and you didn't even install it. Using Windows? Head over [here][2] and grab the binaries for Windows. Double-click the installer and you'll have VIM on Windows in no time.

@tamboer
tamboer / gist:49c6738c23c161b824ad8e1ce7d6df9f
Created August 3, 2020 10:59 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@tamboer
tamboer / ExportTableHeaders.p
Created June 26, 2020 20:44 — forked from johanvergeer/ExportTableHeaders.p
Progress OpenEdge Export column names
/*------------------------------------------------------------------------
File : Export table headers
Purpose : Gist for exporting table headers in Progress OpenEdge
Description :
Author(s) : Johan Vergeer. With thanks to TheDropper at
https://stackoverflow.com/questions/44204335/how-to-add-column-name-while-export-csv-in-progress-4gl#44205839
Created : 6 december 2017
----------------------------------------------------------------------*/
DEF VAR hTable AS HANDLE NO-UNDO.
package com.example.tdd;
import java.math.BigDecimal;
public class UtilizationController {
private CalculatesAverage calculatesAverage;
private CountsHoursInMonth countsHoursInMonth;
private AccumulatesActualsInMonth accumulatesActualsInMonth;
@tamboer
tamboer / Java Anagram Check.java
Created December 16, 2017 17:20 — forked from jsbonso/Java Anagram Check.java
Java - Check if 2 strings are an Anagram of each other
/**
* Check if the two strings are an anagram of each other.
* For example: LISTEN is an Anagram of SILENT.
*
* Two strings are an anagram of each other if the characters
* and the numbers of characters that are composing them,
* are exactly the same. So for example, SUE and USE are anagrams
* because both words have one E, one S and one U,
* hence: ESU = ESU.
@tamboer
tamboer / Reverse a List.java
Created December 16, 2017 17:18 — forked from jsbonso/Reverse a List.java
Reverse a List in Java
/**
* Reverses a given List
* using Collections.reverse() method
* @param list
* @author Jon Bonso
*/
public static void reverse(List<?> list) {
Collections.reverse(list);
}
@tamboer
tamboer / Java Contains Sum.java
Created December 16, 2017 17:10 — forked from jsbonso/Java Contains Sum.java
Java - Checks if the number is a sum of any of the 2 numbers in the list
import java.util.Arrays;
public class App {
public static void main( String[] args ) {
int[] inArray = {1, 3, 3, 5, 7};
int baseNum = 6;
System.out.println("Number List: " + Arrays.toString(inArray) );
@tamboer
tamboer / Java ForEach Lambda Example.java
Created December 16, 2017 17:07 — forked from jsbonso/Java ForEach Lambda Example.java
Java ForEach Lambda Example
/**
* Example of Java's Stream API - ForEach
* @author jonbonso
* @param args
*/
public static void main(String... args) {
System.out.println("Iterate using the traditional for loop...");
int[] numArray = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
@tamboer
tamboer / gist:80be356cf189bfb67e0a0bf376e437ba
Created December 16, 2017 17:05 — forked from chali/gist:f4ef583c6b6d0b100191
Java lambda formating example
private Map<Integer, ? extends Address> getAddressIndex(Optional<SubjectData> currentSubjectData) {
return currentSubjectData
.map((SubjectData subjectData) ->
subjectData.getAddresses().stream()
.filter((Address address) -> address.getEsoId() != null)
.collect(toMap(Address::getEsoId, identity()))
).orElse(emptyMap());
}
@tamboer
tamboer / SimpleJava8Lambda.java
Created December 16, 2017 12:50 — forked from darsen/SimpleJava8Lambda.java
Java Simple Lambda Koan
interface Caps {
public String capitalize(String name);
}
@Koan
public void simpleLambda() {
Caps caps = (String n) -> {
return n.toUpperCase();
};
String capitalized = caps.capitalize("James");