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 main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/hyperledger/fabric-contract-api-go/contractapi" | |
) | |
type SupplyChainContract struct { |
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
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
public class SimpleCalculator extends JFrame implements ActionListener { | |
private JTextField displayField; | |
private double currentValue = 0; | |
private String currentOperator = ""; |
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
#!/bin/bash | |
# Define the directory for alias hooks | |
hooks_dir=~/.git/aliasHooks | |
# Create the directory for alias hooks if it doesn't exist | |
mkdir "$hooks_dir" | |
# Create or update the scripts for checkout, switch, and branch | |
cat >"$hooks_dir/checkout.sh" <<'EOF' |
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 zoo; | |
public abstract class Animal { | |
protected String name; | |
public Animal(String name) { | |
this.name = name; | |
} | |
public abstract void makeSound(); |
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
section .data | |
input db "abc", 0 | |
output db 0 | |
section .text | |
global _start | |
_start: | |
; Find the length of the string | |
mov rsi, input ; rsi points to the string |
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
# GitHub Gists | |
*/ | |
# Environment | |
*env* |
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
# GitHub Gists | |
*/ | |
# Environment | |
*env* |
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
# GitHub Gists | |
*/ | |
# Environment | |
*env* |