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
<!doctype html> | |
<head> | |
<link rel="preconnect" href="https://fonts.googleapis.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600&display=swap" rel="stylesheet"> | |
<title>Stephen Tomlinson</title> | |
</head> | |
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
-- get list of open apps | |
tell application "System Events" | |
set allApps to displayed name of (every process whose background only is false) as list | |
set activeApp to name of first application process whose frontmost is true | |
set exclusions to {"Finder", "LaunchBar"} | |
end tell | |
set {button returned:myQuery} to display dialog "Which applications do you want to quit?" with title "Quit All" with icon caution buttons {"Cancel", "Quit All", "Keep Active Open"} | |
if myQuery is "Quit All" then | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Stephen Tomlinson - UX Designer</title> | |
<style> | |
body { | |
background: rgb(20,20,25); | |
color: white; | |
font-family: "IBM Plex Mono"; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>A simple clock</title> | |
</head> | |
<body translate="no" > |
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
/* | |
* Consistent underlines using gradients | |
* https://medium.com/designing-medium/crafting-link-underlines-on-medium-7c03a9274f9 | |
*/ | |
@mixin underline($colour:currentColor, $line-offset:1, $line-size:0.1) { | |
text-decoration: none; | |
background-repeat: repeat-x; | |
background-size: #{$line-size}em #{$line-size}em; | |
background-position: 0 #{$line-offset}em; |
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
/* | |
* Function name | |
* | |
* Super-crude way of limiting the variable scope of includes | |
* | |
* @file (string) The file to be included | |
* @vars (array) The variables to be available in the include | |
*/ | |
function partial($file, $vars) { |
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 | |
class PaymentGatewayPayPal extends WireData implements Module, ConfigurableModule { | |
/* | |
* Module details, defaults and initialisation | |
* | |
*/ | |
public static function getModuleInfo() |
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/php | |
<?php | |
error_reporting(E_ALL); | |
if (count($argv) <= 1) { | |
print("usage createMockup src_dir dst_dir images_dir\n"); | |
print("\tsrc_dir : dir where all bmml file are\n"); | |
print("\tdst_dir : dir where write all html files\n"); | |
print("\timages_dir : dir where all export mockup png are (will be copied to the \$dst_dir/images directory)\n"); | |
exit(1); | |
} |