Skip to content

Instantly share code, notes, and snippets.

@seungwon0
seungwon0 / mac-lookup-gui.pl
Created July 30, 2012 07:04
looks up MAC vendor information
#!/usr/bin/env perl
#
# mac-lookup-gui.pl - looks up MAC vendor information
#
# Looks up MAC vendor information using Net::MAC::Vendor module.
#
# Seungwon Jeong <[email protected]>
#
# Copyright (C) 2012 by Seungwon Jeong
#
@seungwon0
seungwon0 / weather-notify.pl
Created July 30, 2012 11:37
Weather Forecast of Seoul
#!/usr/bin/env perl
#
# weather-notify.pl - Weather Forecast of Seoul
#
# Shows weather forecast of Seoul using Google's weather API.
#
# Requires notify-send.
#
# Copyright (C) 2012 by Seungwon Jeong
#
@seungwon0
seungwon0 / wlan-channel.pl
Created August 3, 2012 16:48
shows WLAN channel and frequency
#!/usr/bin/env perl
#
# wlan-channel.pl - shows WLAN channel and frequency
#
# Shows WLAN channel and frequency.
#
# Seungwon Jeong <[email protected]>
#
# Copyright (C) 2012 by Seungwon Jeong
#
@seungwon0
seungwon0 / barcode_scanner.pl
Created October 19, 2012 11:33
Barcode Scanner for Android
use Android;
my $android = Android->new();
my $barcode = $android->scanBarcode();
my $result = $barcode->{result}{extras}{SCAN_RESULT};
print $result, "\n";
@seungwon0
seungwon0 / melon_http_server.py
Created October 19, 2012 11:34
Melon HTTP Server for Android
import os
import SimpleHTTPServer
os.chdir('/sdcard/melon')
SimpleHTTPServer.test()
@seungwon0
seungwon0 / wifi_scanner.pl
Created October 30, 2012 11:14
Get number of APs for each WLAN channel
use strict;
use warnings;
use Android;
my $android = Android->new;
my $scan_results_ref = $android->wifiGetScanResults;
@seungwon0
seungwon0 / byteorder.c
Created November 5, 2012 07:43
Detect byte order (little/big endian)
#include <stdio.h>
int main(void)
{
const int data = 1;
const char *const ptr = (char *)&data;
if (*ptr == 1)
puts("Little Endian");
else if (*ptr == 0)
@seungwon0
seungwon0 / circle.py
Created December 14, 2012 09:18
draws circle using ASCII characters
#!/usr/bin/env python
#
# circle.py - draws circle using ASCII characters
#
# http://kldp.org/node/135436
#
# Seungwon Jeong <[email protected]>
#
# Copyright (C) 2012 by Seungwon Jeong
#
@seungwon0
seungwon0 / get-input-output.pl
Last active December 15, 2015 02:09
downloads sample input/output data from acmicpc.net
#!/usr/bin/env perl
#
# get-input-output.pl - downloads sample input/output data from acmicpc.net
#
# Downloads sample input/output data from Baekjoon Online Judge (acmicpc.net).
#
# Seungwon Jeong <[email protected]>
#
# Copyright (C) 2013 by Seungwon Jeong
#
@seungwon0
seungwon0 / facebook-feed.pl
Last active December 16, 2015 18:39
shows facebook feed URL
#!/usr/bin/env perl
#
# facebook-feed.pl - shows facebook feed URL
#
# Shows facebook feed URL.
#
# Usage examples:
# % ./facebook-feed.pl girlsgeneration
# http://www.facebook.com/feeds/page.php?format=atom10&id=216732611680045
# % ./facebook-feed.pl http://www.facebook.com/trycatchpage