find . -name "*.*" -not -path "./tests*" | xargs wc -l
This file contains hidden or 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
| sudo su - -c "R -e \"install.packages('XML', repos='http://cran.rstudio.com/')\"" |
This file contains hidden or 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 ua.samosfator; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.io.PrintWriter; | |
| import java.nio.file.Files; | |
| import java.nio.file.Paths; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.stream.Collectors; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="//code.jquery.com/jquery-2.1.1.min.js"></script> | |
| </head> | |
| <body> | |
| <img style="position: fixed;" src="http://www.crk12.org/cms/lib7/DE01903180/Centricity/Domain/444/bus.gif" alt=""/> | |
| </body> | |
| </html> |
This file contains hidden or 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 static void main(String[] args) throws IOException { | |
| System.out.println("Welcome to IP-EXTRACTOR"); | |
| System.out.println("Make sure you have ip.txt file in the same directory"); | |
| System.out.println("Press Enter to start"); | |
| Scanner scanner = new Scanner(System.in); | |
| scanner.nextLine(); | |
| Pattern ipPattern = Pattern.compile("\\b(?:[0-9]{1,3}\\.){3}[0-9]{1,3}\\b"); |
This file contains hidden or 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 static void printMostFrequentWords() throws Exception { | |
| PrintWriter fileWriter = new PrintWriter("output.txt"); | |
| List<String> words = Arrays.asList(new String(Files.readAllBytes(Paths.get("input.txt"))).split("\\s+")); | |
| words.stream().distinct() | |
| .map((word) -> String.join("", Arrays.asList(word.split("")).stream() | |
| .filter((character) -> Character.isLetter(character.charAt(0))) | |
| .collect(Collectors.toList()))) | |
| .map((word) -> new AbstractMap.SimpleEntry<>(word, Collections.frequency(words, word))) | |
| .sorted(Collections.reverseOrder(Map.Entry.comparingByValue())) | |
| .forEach((entry) -> fileWriter.println(entry.getValue() + " - " + entry.getKey())); |
This file contains hidden or 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 com.company; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| public class Main { | |
| private static BufferedReader consoleReader = new BufferedReader(new InputStreamReader(System.in)); | |
| private static String fullPi = String.valueOf(Math.PI); |
alias.lines diff --shortstat 4b825dc642cb6eb9a060e54bf8d69288fbee4904
alias.lg1 log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --allalias.lg2 log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(rese t)' --allalias.lg !git lg1
