Find it here: https://github.com/bitemyapp/learnhaskell
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
%!PS | |
% Postscript implementation of Georg Nees "Schotter" | |
% Nicolas Seriot, 2022-09-20 | |
% https://collections.vam.ac.uk/item/O221321/schotter-print-nees-georg | |
% golfed version | |
% /S 24 def/j{rand r mod 2 mul r sub 1 add}def 1 1 12{1 1 24{ | |
% /r exch def gsave dup S mul r S mul neg S 2 add S mul add | |
% translate j rotate j j S S rectstroke grestore}for}for |
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
tell application "Terminal" | |
set ws to windows | |
if (true) then -- set to false to see current window positions | |
set c to 80 | |
set ps to {{4215, 27}, {3629, 27}, {3043, 27}, {3043, 734}, {2457, 734}, {3629, 734}, {4215, 734}} | |
set r to 48 | |
set ix to 1 | |
repeat with p in ps | |
set w to item ix of ws |
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
<key>NSAppleScriptEnabled</key> | |
<true/> | |
<key>OSAScriptingDefinition</key> | |
<string>ScriptableTasks.sdef</string> |
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
set input to the clipboard as text | |
--whole process is in a loop to allow for user to research for contact | |
repeat | |
--need to find contact in order to update their info | |
try | |
display dialog "Enter name or company of contact to Instagram to:" default answer "" | |
set thePerson to text returned of result | |
end try | |
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
esphomeyaml: | |
name: basic | |
platform: ESP8266 | |
board: esp01_1m | |
board_flash_mode: dout | |
wifi: | |
ssid: 'Demo' | |
password: 'Livestream' |
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
class PopoverTableViewController: UITableViewController { | |
override func viewDidLayoutSubviews() { | |
super.viewDidLayoutSubviews() | |
self.preferredContentSize = CGSize(width: 320, height: self.tableView.contentSize.height) | |
} | |
} |
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
# Just an example how to check and upgrade the sonoff-tasmota from the Home Assistant: configuration.yaml | |
# One click upgrade all Sonoff-Tasmota devices, check the current installed and latest available version of firmware. | |
# Twitter link: https://goo.gl/e3y7pa | |
# | |
# 1. Open your sonoff webinterface and add in the "Firmware Upgrade" menu following OTA Url, save! Example: https://goo.gl/6ZMjzA | |
# OTA Url: http://sonoff.maddox.co.uk/tasmota/sonoff.bin | |
# | |
# 2. Below the Home Assistant configuration: | |
script: |
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
// Load Ember into the global scope by requiring it | |
require('ember'); | |
// Go have fun | |
var app = Ember.Application.create(); |
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 requests | |
class HoverException(Exception): | |
pass | |
class HoverAPI(object): | |
def __init__(self, username, password): | |
params = {"username": username, "password": password} | |
r = requests.post("https://www.hover.com/api/login", params=params) |
NewerOlder