Step-by-step guide for building the Claude Code CLI from the alesha-pro/claude-code repository — leaked Anthropic Claude Code source code.
- Linux (Ubuntu 22.04+) or macOS
- 4GB RAM, 4 CPU cores, 30GB disk
- Bun >= 1.3
- Git
Step-by-step guide for building the Claude Code CLI from the alesha-pro/claude-code repository — leaked Anthropic Claude Code source code.
| # | |
| # Extract a JSON value in an object: | |
| # | |
| # items = get_json_value(json, "payload.tree.items") | |
| # | |
| # Or in an array: | |
| # | |
| # while ((item = get_json_value(items, i++))) | |
| # name = decode_json_string(get_json_value(item, "name")) | |
| # |
| import json | |
| class Income: | |
| def __init__(self): | |
| self.income_sources = {} | |
| def add(self, source, amount): | |
| """Add income to the total, categorizing by source.""" | |
| self.income_sources[source] = self.income_sources.get(source, 0) + amount |
| https://github.com/ripienaar/free-for-dev | |
| https://github.com/akullpp/awesome-java |
| package cz.tejnora.pokusy; | |
| import static org.hamcrest.CoreMatchers.is; | |
| import static org.hamcrest.MatcherAssert.assertThat; | |
| import java.util.Arrays; | |
| import java.util.Collections; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.concurrent.atomic.AtomicInteger; |
| package com.budhash.common.utils; | |
| //import com.github.drapostolos.typeparser.TypeParser; | |
| import org.apache.commons.lang3.StringUtils; | |
| import java.util.*; | |
| import java.util.function.Function; | |
| import java.util.stream.Collectors; | |
| public class Converter { |
| package com.budhash.common.location; | |
| import com.budhash.common.utils.Converter; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; |
| #!/bin/bash | |
| set -e | |
| UPDATES_URL="http://updates.jenkins-ci.org/download/plugins/" | |
| if [ $# -lt 2 ]; then | |
| echo "USAGE: $0 plugin-list-file destination-directory" | |
| exit 1 | |
| fi |
| http://www.theotherian.com/2013/11/non-blocking-cache-with-guava-and-listenable-futures.html |
| /* | |
| * Copyright (c) 2012 Jan Kotek | |
| * | |
| * 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 |