- evaluate objects created in the analysis phase
- helps identify more objects needed for overall solution
- refines existing object properties and methods
- specify class dependencies
- establishes relations between objects
- determines appropriate classes to represent respective objects
- relationships:
- inheritance - allows a class to inherit the properties and methods of another class
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
void setup() { | |
// init built-in LED pin as output | |
pinMode(LED_BUILTIN, OUTPUT); | |
// init USB serial converter so we have a port created | |
Serial.begin(115200); | |
// optional but IMPORTANT | |
// wait for the serial port to be ready (good for debugging) | |
while(!Serial) {; /* wait for serial connection */ } |
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 asyncio | |
import random | |
import sys | |
import time | |
""" | |
i was bored and couldn't come up with a concept to work on | |
so i made this pseudo-machine. =) | |
""" | |
def bound_int(n: int, minv: int, maxv: int) -> int: |
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 algorithm; | |
import org.apache.commons.lang.ArrayUtils; | |
import java.security.SecureRandom; | |
import java.util.Arrays; | |
import java.util.stream.IntStream; | |
import static java.lang.System.out; |
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 org.mintaka5; | |
import org.mintaka5.ui.GridWindow; | |
import java.util.Random; | |
public class Main { | |
public static void main(String[] args) { | |
int[][] randGrid = randomGrid(25, 25); |
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 org.mintaka5.ui; | |
import javax.swing.*; | |
import java.awt.*; | |
public class GridWindow extends JFrame { | |
private final int[][] theGrid; | |
private int[] dimensions = {10, 10}; |
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 | |
# youtube-dl --format mp4 UF8uR6Z6KLc | |
# ffmpeg -i video.mp4 -ss 00:03:32 -to 00:05:32 clip.mp4 | |
# youtube video id | |
vid="$1"; | |
echo "[youtube-dl] download video from youtube in .mp4 format..."; | |
youtube-dl --format mp4 $vid -o '%(title)s.%(ext)s'; | |
if [ "$2" == --trim ] |
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
#include <iostream> | |
#include <openssl/sha.h> | |
#include <sstream> | |
#include <string> | |
#include <iomanip> | |
using namespace std; | |
string sha256_simple(const string s) | |
{ |
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 org.white5moke; | |
import org.apache.commons.lang3.math.NumberUtils; | |
import org.hipparchus.analysis.function.Sigmoid; | |
import org.hipparchus.analysis.function.Tanh; | |
import org.openscience.cdk.math.RandomNumbersTool; | |
import java.security.SecureRandom; | |
import java.time.Instant; | |
import java.time.ZoneId; |
NewerOlder