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
if [[ $COLUMNS -gt 80 && $LINES -gt 20 ]]; then | |
screenfetch; | |
fi |
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
if __name__ == '__main__': | |
bot = IRCBot(channel="#jimileibniz", devmode=False) | |
atexit.register(cleanup, bot) | |
bot.start() |
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 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) |
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
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; |
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
jcb.addActionListener(new ActionListener() { | |
@Override | |
public void actionPerformed(ActionEvent e) { | |
calc(); | |
int n = jcb.getSelectedIndex(); | |
with_heading.setText(warrantyLabels[n]); | |
} | |
}); |
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
for_window [title="^floatme$"] floating enable |
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
jcb.addActionListener(new ActionListener() { | |
@Override | |
public void actionPerformed(ActionEvent e) { | |
calc(); | |
int n = jcb.getSelectedIndex(); | |
with_heading.setText(warrantyLabels[n]); | |
} | |
}); |
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 math; | |
/** | |
* Implements a complex number a + b*i; | |
* | |
* @author kif | |
* | |
*/ | |
public class ComplexNumber extends Number { | |
private double real = 1; |
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
switch(continent) { | |
case 1: | |
/*code*/; | |
break; | |
case 2: | |
/*code*/; | |
break; | |
} | |
} |
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
//3a) | |
String truncate_to_8(String s) { | |
return s_sub(s, 0, 8); | |
} |