This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "planck.h" | |
#include "action_layer.h" | |
#include "muse.h" | |
extern keymap_config_t keymap_config; | |
#define _BL 0 | |
#define _FN1 1 | |
#define _FN2 2 | |
#define KC_ KC_TRNS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
import java.util.Scanner; | |
/** | |
* A program to play Roshambo against a human | |
* | |
* Using methods to create a better structure. | |
* | |
* @author Paul Mahlis | |
* @version 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
/** | |
* I have not compiled this, so I make no promises that I will work as expected... | |
*/ | |
public class AutoCalc { | |
private int x = 0, y = 0; | |
private final Scanner scanner = new Scanner(System.in); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Example usage. | |
*/ | |
class Example { | |
public static void main(String[] args) { | |
String example = "foo/bar/baz"; | |
Slice<String> s = new Slice<>(example.split("/")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Collection; | |
import java.util.Iterator; | |
/** | |
* A simple collection similar to Go's built-in notion of "slices". | |
* | |
* These are essentially bounded array objects with an immutable underlying store. Appending and | |
* inserting elements requires a new backing store to be allocated, but slicing out a contiguous | |
* subset just creates a new Slice that references the existing backing store. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jnk.emily; | |
import com.google.common.base.Preconditions; | |
import com.google.common.base.Predicate; | |
import com.google.common.base.Predicates; | |
/** | |
* @author Emily | |
* @created 23. des. 2011 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** | |
* @author Emily Soldal | |
* @created 20. apr. 2012 | |
*/ | |
public class AggregationExample1 { | |
public static void main(String[] args) { | |
Iterable<Car> cars = getCars(); | |
Ordering<Car> ordering = Ordering.natural().onResultOf(Address.ZipCodeAccessor.instance) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2011 The Guava Authors | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Deleter<I,U> { | |
boolean delete(I in, U origin); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static com.google.common.base.Preconditions.*; | |
import static com.google.common.collect.Iterables.*; | |
import java.io.Serializable; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import com.google.common.base.Function; | |
import com.google.common.base.Functions; | |
import com.google.common.collect.ImmutableMap; |
NewerOlder