This file contains 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
<?php | |
/** | |
* On-the-fly CSS Compression | |
* Copyright (c) 2009 and onwards, Manas Tungare. | |
* Creative Commons Attribution, Share-Alike. | |
* | |
* In order to minimize the number and size of HTTP requests for CSS content, | |
* this script combines multiple CSS files into a single file and compresses | |
* it on-the-fly. | |
* |
This file contains 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/env python | |
# coding: utf-8 | |
# | |
# Find unused translations. | |
# Python 3. | |
# | |
from collections import OrderedDict | |
from glob import glob | |
import re |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
/* | |
* Disable HFS+ journal. | |
* |
This file contains 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
# Usage: powershell ".\deploy_jenkins_slave_python.ps1" | |
# Stop the execution on the first error | |
$ErrorActionPreference = "Stop" | |
# Ensure we have a working WORKSPACE and a defined Python version | |
if (-Not ($Env:PYTHON_VERSION)) { | |
echo "PYTHON_VERSION not defined. Aborting." | |
exit 1 | |
} elseif (-Not ($Env:WORKSPACE)) { |
This file contains 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 skimage import color, img_as_float | |
from PIL import Image | |
import numpy as np | |
import datetime | |
import pyautogui | |
from mss import mss | |
counter = 0 | |
redCarSide = 0 | |
blueCarSide = 1 |
This file contains 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 timeit import Timer | |
setup = """ | |
def func_orig(value): | |
return True if len(value) > 0 else False | |
def func_new(value): | |
return value != '' | |
""" |
This file contains 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
# coding: utf-8 | |
""" | |
Requires Python 3 and the Python client >= 2.0.0. | |
Usage: | |
python get_change_summary.py --users=30 | |
""" | |
import argparse | |
import sys | |
import time |
This file contains 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
# coding: utf-8 | |
from __future__ import print_function | |
import time | |
import numpy | |
from PIL import Image | |
import mss |
This file contains 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 PyQt5.QtCore import QDir, Qt, QTimer | |
from PyQt5.QtGui import QIcon, QPixmap | |
from PyQt5.QtWidgets import (QApplication, QCheckBox, QFileDialog, QGridLayout, | |
QGroupBox, QHBoxLayout, QLabel, QPushButton, QSizePolicy, QSpinBox, | |
QVBoxLayout, QWidget, QSystemTrayIcon) | |
class Screenshot(QWidget): | |
def __init__(self): | |
super(Screenshot, self).__init__() |
This file contains 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
# -*- mode: python -*- | |
block_cipher = None | |
icon = '/Applications/Calculator.app/Contents/Resources/AppIcon.icns' # Eventually change me | |
a = Analysis(['systray.py'], | |
pathex=[], | |
binaries=[], | |
datas=[], | |
hiddenimports=[], |
OlderNewer