Skip to content

Instantly share code, notes, and snippets.

if [[ $COLUMNS -gt 80 && $LINES -gt 20 ]]; then
screenfetch;
fi
if __name__ == '__main__':
bot = IRCBot(channel="#jimileibniz", devmode=False)
atexit.register(cleanup, bot)
bot.start()
import sys
import time
import socket
server = "irc.hackint.org" #settings
channel = "#jimileibniz"
botnick = "groovebot"
#establish connection
irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
public class ImageEditor extends JFrame implements ActionListener {
private ImagePanel _image_panel;
private JButton _jb_load;
private JButton _jb_select;
private JButton _jb_invert;
private JButton _jb_colorize_r;
private JButton _jb_colorize_g;
private JButton _jb_colorize_b;
private JButton _jb_mirror_x;
jcb.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
calc();
int n = jcb.getSelectedIndex();
with_heading.setText(warrantyLabels[n]);
}
});
for_window [title="^floatme$"] floating enable
jcb.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
calc();
int n = jcb.getSelectedIndex();
with_heading.setText(warrantyLabels[n]);
}
});
package math;
/**
* Implements a complex number a + b*i;
*
* @author kif
*
*/
public class ComplexNumber extends Number {
private double real = 1;
switch(continent) {
case 1:
/*code*/;
break;
case 2:
/*code*/;
break;
}
}
//3a)
String truncate_to_8(String s) {
return s_sub(s, 0, 8);
}