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.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.WindowConstants; | |
public class Bresenham { | |
public static void main(String[] args) { | |
JFrame f = new JFrame(); |
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
from twitter import Twitter, OAuth | |
from wordcloud import WordCloud, STOPWORDS | |
import json | |
def to_file(text, filename="output.txt"): | |
with open(filename, "w", encoding="utf-8") as text_file: | |
text_file.write(text) | |
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 CG; | |
import java.awt.Color; | |
import java.awt.Graphics; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; |
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
from PIL import Image | |
import os | |
import shutil | |
print('---Image resize---') | |
print('Path folder example : /Users/HelloUsers/Pictures/MyPhoto\n') | |
while(True): | |
path_folder = input('Path folder : ') | |
if(os.path.isdir(path_folder)): | |
break |
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
/* | |
data input format | |
list = [[t1,p1], | |
[t2,p2], | |
[t3,p3], | |
[.....]] | |
*/ | |
list = [[10,1], | |
[10,7], |
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
""" | |
To install the matplotlib module : | |
https://matplotlib.org/users/installing.html | |
""" | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.image as mpimg | |
from matplotlib.patches import Polygon | |
from matplotlib.collections import PatchCollection |
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 Assignment3; | |
import java.awt.Color; | |
import java.awt.Graphics; | |
public class Circle | |
{ | |
private int _x,_y; | |
private int _size; | |
private Color _color; |
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 Assignment4; | |
import java.awt.*; | |
import java.util.*; | |
import java.applet.*; | |
import java.awt.geom.Ellipse2D; | |
import java.awt.geom.Line2D; | |
public abstract class Animate extends Applet implements Runnable{ | |
public abstract void workspace() throws InterruptedException; |
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
/*Dogter Box*/ | |
%% | |
%class Lexer | |
%standalone | |
%public | |
%unicode | |
%{ | |
String[] symTable = new String[100]; |
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
selectionSort <- function(num) { | |
for (i in seq(1, (length(num) - 1))) { | |
index <- i # index of min number | |
for (j in seq(i, length(num))) { | |
if (num[j] < num[index]) { | |
index <- j | |
} | |
} | |
# swap number | |
minNum <- num[index] |
OlderNewer