This Claude Code gist is brought to you by LLM TECH STORIES If you haven't subscribed yet, go to https://www.youtube.com/@LLMTECHSTORIES and subscribe :)
https://www.youtube.com/watch?v=CZqangKmpDA
irm https://claude.ai/install.ps1 | iex
This Claude Code gist is brought to you by LLM TECH STORIES If you haven't subscribed yet, go to https://www.youtube.com/@LLMTECHSTORIES and subscribe :)
https://www.youtube.com/watch?v=CZqangKmpDA
irm https://claude.ai/install.ps1 | iex
| package com.sample.code.java; | |
| public class HelloWorld { | |
| public static void main(String[] args) { | |
| System.out.println("Hello World"); | |
| } | |
| } |
| public class IsRotation { | |
| public static void main(String[] args) { | |
| String a = "ABCD"; | |
| String b = "DABC"; | |
| System.out.println(isRotation(a,b)); |
| Please follow below steps to use Java on Jupyter Notebook, to experiment Java code on browser and share snippets with others for trying out. | |
| Please note that this is for windows environment. | |
| 1. Install Anaconda for Windows from https://www.anaconda.com/download/ | |
| 2. After installation of Anaconda, open Anaconda Navigator and install Jupyter Notebook | |
| 3. Download java kernel from https://github.com/SpencerPark/IJava/releases/download/v1.2.0/ijava-1.2.0.zip | |
| 4. Extract ijava-1.2.0.zip file |
| var arr = [], l = document.links; | |
| for(var i=0; i<l.length; i++) { | |
| arr.push(l[i].href); | |
| } | |
| for(var i=0; i<arr.length;i++){ | |
| var str = arr[i]; | |
| if(str.startsWith("https://www.youtube.com")){ | |
| console.log(str); | |
| } | |
| } |
| import java.io.BufferedReader; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| /** | |
| * Created by gansai on 12/11/15. | |
| * Referred to http://stackoverflow.com/a/4716623 | |
| */ | |
| public class ReadFile { |
| import java.util.*; | |
| /** | |
| * Created by gansai on 11/10/15. | |
| */ | |
| public class FindPairSum_Sorted { | |
| public static void main(String args[]) | |
| { | |
| Integer array[] = new Integer[] { 1, 43, 2, 55, 21, 87, 9 }; |
| /** | |
| * Created by gansai on 11/10/15. | |
| */ | |
| public class FindPairSum_Brute { | |
| public static void main(String args[]) | |
| { | |
| int array[] = new int[] { 1, 43, 2, 55, 21, 87, 9 }; | |
| int sum = 76; | |
| boolean foundPair = false; |
| #This is my first Ruby code | |
| print "Hi Everyone. How are you?" | |
| puts "Enter a value" | |
| num = gets.to_i | |
| puts "Enter another value" | |
| num_2 = gets.to_i | |
| puts num.to_s + " + " + num_2.to_s + " = " + (num + num_2).to_s |
| import java.util.List; | |
| import twitter4j.Status; | |
| import twitter4j.Twitter; | |
| import twitter4j.TwitterException; | |
| import twitter4j.TwitterFactory; | |
| import twitter4j.conf.ConfigurationBuilder; | |
| public class TweetMain { | |
| public static void main(String[] args) { |