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
| // | |
| // ViewController.swift | |
| // CALayerLearning | |
| // | |
| // update of code from the following tutorial | |
| // https://www.raywenderlich.com/90488/calayer-in-ios-with-swift-10-examples | |
| // see also https://github.com/scotteg/LayerPlayer | |
| import UIKit |
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
| /** | |
| * BasicHTTPClient.ino | |
| * | |
| * Created on: 24.05.2015 | |
| * | |
| */ | |
| #include <Arduino.h> | |
| #include <ESP8266WiFi.h> |
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
| centerX = 15 | |
| centerY = 15 | |
| radius = 10 | |
| style = "fill:rgb(200,200,255);" | |
| f = open('helloworld.svg','w') | |
| f.write('<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n') | |
| f.write('<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n') | |
| f.write('<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">\n') |
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
| let centerX = 15 | |
| let centerY = 15 | |
| let radius = 10 | |
| let style = "fill:rgb(200,200,255);" | |
| const fs = require('fs') | |
| let svg = "" | |
| svg += '<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n' | |
| svg += '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n' |
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
| #calendarSVG.py | |
| import datetime | |
| import calendar | |
| year = 2018 | |
| month = 4 | |
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
| const fs = require('fs') | |
| var moment = require('moment') | |
| //https://momentjs.com/docs/#/displaying/ | |
| let year = 2018 | |
| let month = 0 | |
| let viewBoxWidth = 2550 | |
| let viewBoxHeight = 3300 | |
| let radius = viewBoxWidth/16 |
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
| const fs = require('fs') | |
| var moment = require('moment') | |
| //https://momentjs.com/docs/#/displaying/ | |
| let year = 2018 | |
| let month = 0 | |
| //(300 per inch) | |
| let viewBoxWidth = 2550 | |
| let viewBoxHeight = 3300 |
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 calendar | |
| #https://docs.python.org/2/library/calendar.html | |
| print(calendar.weekheader(5)) | |
| calendar.prcal(2018) | |
| year = 2018 | |
| month = 2 | |
| #week = 1 |
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
| 125 git remote add remotenickname https://github.com/remote/url | |
| 127 git add . | |
| 128 git commit -m "initial migration commit" | |
| 130 git push remotenickname branchname |