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 main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
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
root@ev3dev:~/node# cat /proc/cpuinfo | |
processor : 0 | |
model name : ARM926EJ-S rev 5 (v5l) | |
BogoMIPS : 148.88 | |
Features : swp half thumb fastmult edsp java | |
CPU implementer : 0x41 | |
CPU architecture: 5TEJ | |
CPU variant : 0x0 | |
CPU part : 0x926 | |
CPU revision : 5 |
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
var msg = new SpeechSynthesisUtterance(); | |
var voices = window.speechSynthesis.getVoices(); | |
for(var i=0; i< voices.length; i++){ | |
console.log(voices[i].name); | |
} | |
msg.voice = voices[4]; | |
msg.lang = 'es-ES'; | |
msg.text = "Darh vader es un tio muy malo"; | |
window.speechSynthesis.speak(msg); |
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
diskutil list | |
diskutil unmountDisk /dev/disk2s1 | |
sudo dd if=./rpi-ev3dev-jessie-2015-12-30.img of=/dev/rdisk2 bs=4m | |
sudo dd if=./rpi2-ev3dev-jessie-2015-12-30.img of=/dev/rdisk2 bs=4m |
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
``` bash | |
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
@Autowired | |
private DiscoveryClient discoveryClient; | |
@Value("${spring.application.name}") | |
private String microServiceName; | |
@Value("${eureka.instance.leaseRenewalIntervalInSeconds}") | |
private int leaseInternval; | |
@Test |
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
mvn archetype:generate \ | |
-DgroupId=demo \ | |
-DartifactId=project-name \ | |
-DarchetypeArtifactId=maven-archetype-quickstart \ | |
-DinteractiveMode=false | |
Source: | |
https://maven.apache.org/plugins-archives/maven-archetype-plugin-1.0-alpha-7/examples/simple.html |
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
// Terminal 2048 | |
// By: Andrew Tam | |
// There is currently no GUI for this game and is played completely on the Terminal. | |
// Type in the instructions such as "up", "down", "left", "right" to move the tiles | |
// Type in "reset" to reset the game | |
import java.util.Scanner; | |
import java.util.Arrays; | |
import java.util.ArrayList; | |
import java.util.Random; |
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 cs340.tickettoride.shared.utils; | |
import java.util.Random; | |
public class RandomGameName { | |
private static String[] Beginning = {"Busy", | |
"Lazy", | |
"Careless", | |
"Clumsy", |
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 class CatacrokerTest { | |
public static void main(String[] args){ | |
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { | |
public void run() { | |
System.out.println("Ohh my god, the Catacroker is alive"); | |
} | |
})); |
OlderNewer