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
clear all | |
clc | |
%Read from file | |
load 'datafile'; | |
x = datafile(:,1); | |
y = datafile(:,2); | |
I = datafile(:,3); |
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
import os | |
import sys | |
import fnmatch | |
from PIL import Image | |
dirPath = r'I:\A_folder_with_photos_and_subfolders' | |
if len(sys.argv) > 1: | |
searchParam = sys.argv[1] | |
regExpParam = '*' + searchParam + '*.*' |
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 win32api import * | |
from win32gui import * | |
import win32con | |
import sys, os | |
import struct | |
import time | |
class WindowsBalloonTip: |
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
#^+?:: ;Winkey + Ctrl + Shift + ? | |
FormatTime, Today,, yyyyMMdd | |
rDays := 20200101 | |
rDays -= Today, days | |
rWeeks := rDays//7 | |
rWeekDays := mod(rDays,7) | |
rWorkDays := rDays - (rWeeks*2) ;Removing Saturdays and Sundays | |
MsgBox, 64, Countdown , %rDays% total days `n%rWeeks% weeks and %rWeekDays% days `n%rWorkDays% workdays approx. | |
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 <Metro.h> | |
#define rLED 10 | |
#define gLED 9 | |
#define LED 13 | |
Metro pauseTimer = Metro(1200000); | |
void setup() | |
{ | |
pinMode(rLED,OUTPUT); |
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
#!/bin/sh | |
# variables | |
title="New Post" | |
postdate=`date +%Y-%m-%d` | |
posttime=`date +%H:%M:%S` | |
timezone="+0100" | |
publishdate="$postdate $posttime $timezone" | |
tags= | |
categories= |