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 jossef.cli.mahout; | |
import au.com.bytecode.opencsv.CSVReader; | |
import com.google.common.collect.Lists; | |
import com.google.common.collect.Maps; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.text.DateFormat; |
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
http://stackoverflow.com/questions/23627796/closing-a-form-view/23632367#23632367 |
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
<Application x:Class="WpfApplication2.App" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<Application.Resources> | |
</Application.Resources> | |
</Application> |
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
// ---- | |
// Sass (v3.3.10) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
=draggable($is-draggable) | |
@if $is-draggable | |
cursor: move | |
@else |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sqlite3 as lite | |
import sys | |
import datetime | |
import csv | |
import StringIO | |
import urlparse |
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
from email.mime.image import MIMEImage | |
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
class MailSender(object): | |
def __init__(self, username, password, server='smtp.gmail.com', port=587, use_tls=True): | |
self.username = username |
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
#!/usr/bin/python | |
import os | |
import shutil | |
import subprocess | |
import tempfile | |
def get_hex_files(): | |
for root, dirs, files in os.walk(os.getcwd()): |
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
#!/bin/sh/ python | |
import os | |
import shutil | |
import hashlib | |
output_dir = '.' | |
for dirpath, dnames, fnames in os.walk("."): | |
for f in fnames: | |
full_path = os.path.join(dirpath, f) |
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 os | |
from PIL import Image | |
output_dir = '.\\output' | |
thumbnail_size = (200,200) | |
if not os.path.exists(output_dir): | |
os.makedirs(output_dir) | |
for dirpath, dnames, fnames in os.walk(".\\input"): |
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
def call(command, timeout=60): | |
process = None | |
def target(): | |
global process | |
process = subprocess.Popen(command) | |
process.communicate() | |
thread = threading.Thread(target=target) | |
thread.start() |
OlderNewer