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
{ | |
"CATALOG": { | |
"PLANT": [ | |
{ | |
"COMMON": "Bloodroot", | |
"BOTANICAL": "Sanguinaria canadensis", | |
"ZONE": "4", | |
"LIGHT": "Mostly Shady", | |
"PRICE": "$2.44", | |
"AVAILABILITY": "031599" |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<CATALOG> | |
<PLANT> | |
<COMMON>Bloodroot</COMMON> | |
<BOTANICAL>Sanguinaria canadensis</BOTANICAL> | |
<ZONE>4</ZONE> | |
<LIGHT>Mostly Shady</LIGHT> | |
<PRICE>$2.44</PRICE> | |
<AVAILABILITY>031599</AVAILABILITY> | |
</PLANT> |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<CATALOG> | |
<CD> | |
<TITLE>Empire Burlesque</TITLE> | |
<ARTIST>Bob Dylan</ARTIST> | |
<COUNTRY>USA</COUNTRY> | |
<COMPANY>Columbia</COMPANY> | |
<PRICE>10.90</PRICE> | |
<YEAR>1985</YEAR> | |
</CD> |
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
{ | |
"CATALOG": { | |
"CD": [ | |
{ | |
"TITLE": "Empire Burlesque", | |
"ARTIST": "Bob Dylan", | |
"COUNTRY": "USA", | |
"COMPANY": "Columbia", | |
"PRICE": "10.90", | |
"YEAR": "1985" |
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 Solution1 { | |
//https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/ | |
public static void main(String[] args) { | |
int profit = maxProfit(new int[] { 7, 1, 5,1, 6, 4 }); | |
System.out.println(profit); | |
} | |
public static int maxProfit(int[] prices) { | |
if (prices.length == 0) |
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 com.example.spring.integration.springintegrationdemo; | |
import java.util.Arrays; | |
import java.util.stream.IntStream; | |
public class EarlyTime { | |
public static void main(String[] args) { | |
long t1 = System.currentTimeMillis(); | |
System.out.println(solution(1, 8, 2, 3, 6, 4)); |
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 IntegrationFlow jmsInboundFlow() { | |
return IntegrationFlows | |
.from(Jms.inboundAdapter(connectionFactory) | |
.destination("pan.outbound")) | |
.transform((String s) -> s.toUpperCase()) | |
.channel("in-bound-request-channel") | |
.get(); | |
} | |
@Bean |
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.io.IOException; | |
import java.net.InetAddress; | |
import java.net.InetSocketAddress; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.SocketChannel; | |
public class MySelectorClientExample { | |
private static final int BUFFER_SIZE = 1024; | |
private static String[] messages = { "The best way to predict the future is to create it.", | |
"As you think, so shall you become.", "The noblest pleasure is the joy of understanding.", |
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
@echo off | |
echo ************************************** | |
echo installing Chocholaty | |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
echo ************************************** | |
echo setting choco config | |
choco feature enable -n allowGlobalConfirmation | |
REM echo "Installing Chocolatey via power shell" |
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
#!/bin/bash | |
# spotify_platform_oauth.sh | |
# | |
# A script to quickly and easily generate Spotify oauth tokens given a client | |
# id, secret, and scope. Will authenticate a user via the browser. | |
# The app must have "http://localhost:8082/' as a redirect_uri | |
# spotify_client_creds.json should contain a spotify client id and secret pair |
OlderNewer