Skip to content

Instantly share code, notes, and snippets.

/**
Copyright: (c) SAEKI Yoshiyasu
License : MIT-style license
<http://www.opensource.org/licenses/mit-license.php>
last updated: 2011/05/21
**/
#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
/**
Copyright: (c) SAEKI Yoshiyasu
License : MIT-style license
<http://www.opensource.org/licenses/mit-license.php>
last updated: 2011/05/21
**/
#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
@laclefyoshi
laclefyoshi / systemtray.py
Created June 11, 2011 02:51
menu bar application
#!/usr/bin/jython
# -*- coding: utf-8 -*-
# Copyright : (c) SAEKI Yoshiyasu
# License : MIT-style license
# <http://www.opensource.org/licenses/mit-license.php>
# last updated: 2011/06/11
from java.awt import SystemTray
from java.awt import TrayIcon
from java.awt import Toolkit
@laclefyoshi
laclefyoshi / growl.py
Created June 18, 2011 02:57
Growl with Jython
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright : (c) SAEKI Yoshiyasu
# License : MIT-style license
# <http://www.opensource.org/licenses/mit-license.php>
# last updated: 2011/06/18
import sys
sys.path.append("./Growl.jar")
from info.growl import GrowlUtils
@laclefyoshi
laclefyoshi / screenshot.py
Created June 25, 2011 04:48
taking screenshot with Jython
#!/usr/bin/jython
# -*- coding: utf-8 -*-
# Copyright : (c) SAEKI Yoshiyasu
# License : MIT-style license
# <http://www.opensource.org/licenses/mit-license.php>
# last updated: 2011/06/25
from java.awt import Toolkit
from java.awt import Robot
from java.awt import Rectangle
@laclefyoshi
laclefyoshi / mouse.py
Created June 25, 2011 05:00
controlling mouse with Jython
#!/usr/bin/jython
# -*- coding: utf-8 -*-
# Copyright : (c) SAEKI Yoshiyasu
# License : MIT-style license
# <http://www.opensource.org/licenses/mit-license.php>
# last updated: 2011/06/25
from java.awt import Robot
from java.awt.event import InputEvent
@laclefyoshi
laclefyoshi / keyboard.py
Created June 25, 2011 05:13
controlling keyboard with Jython
#!/usr/bin/jython
# -*- coding: utf-8 -*-
# Copyright : (c) SAEKI Yoshiyasu
# License : MIT-style license
# <http://www.opensource.org/licenses/mit-license.php>
# last updated: 2011/06/25
from java.awt import Robot
from java.awt.event import KeyEvent
import os
@laclefyoshi
laclefyoshi / person.proto
Created July 16, 2011 04:42
Person item for Protocol Buffers
message Person {
required int32 id = 1;
required string name = 2;
optional string email = 3;
}
@laclefyoshi
laclefyoshi / add_person.cc
Created July 16, 2011 04:44
cpp code for Protocol Buffers
/**
Copyright: (c) SAEKI Yoshiyasu
License : MIT-style license
<http://www.opensource.org/licenses/mit-license.php>
last updated: 2011/07/16
**/
#include <iostream>
#include <fstream>
#include <string>
@laclefyoshi
laclefyoshi / read_person.cc
Created July 16, 2011 04:48
cpp code for Protocol Buffers
/**
Copyright: (c) SAEKI Yoshiyasu
License : MIT-style license
<http://www.opensource.org/licenses/mit-license.php>
last updated: 2011/07/16
**/
#include <iostream>
#include <fstream>
#include <string>