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
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> |
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
| #!/usr/bin/env python3 | |
| import sys | |
| import array | |
| import math | |
| import random | |
| import os.path | |
| import win32com.client | |
| def get_catia(): |
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
| [ | |
| "Automotive", | |
| "Budgeting", | |
| "HVAC", | |
| "Heaters", | |
| "Hydraulics", | |
| "Logistics Management", | |
| "Management", | |
| "Negotiation", | |
| "Project Planning", |
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 Rhino | |
| import scriptcontext as sc | |
| import rhinoscriptsyntax as rs | |
| def zPolyline(): | |
| # For this example we will use a GetPoint class, but all of the custom | |
| # "Get" classes support command line options. | |
| gp = Rhino.Input.Custom.GetPoint() | |
| gp.SetCommandPrompt("GetPoint with options") | |
| numPoints = 2 |
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
| from openpyxl import load_workbook | |
| import os | |
| dir_name = os.path.relpath(os.path.dirname(__file__)) | |
| file_name = os.path.join(dir_name, 'Data.xlsx') | |
| unique_items = [] | |
| all_items = [] |
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
| #!/usr/bin/python | |
| import os | |
| import os.path | |
| import zipfile | |
| from datetime import datetime | |
| from re import sub | |
| sourceFile = zipfile.ZipFile('text.docx') |
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
| from tkinter import * | |
| from tkinter.colorchooser import askcolor | |
| class Paint(object): | |
| DEFAULT_PEN_SIZE = 5.0 | |
| DEFAULT_COLOR = 'black' | |
| def __init__(self): |
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
| using System.Diagnostics; | |
| using System.Windows.Forms; | |
| namespace Loader { | |
| public static class Library | |
| { | |
| [DllExport] | |
| static void ShowMessage() { | |
| using(var p = Process.GetCurrentProcess()) { | |
| // Add System.Windows.Forms reference |
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 Graph: | |
| def __init__(self): | |
| self.nodes = set() | |
| self.edges = defaultdict(list) | |
| self.distances = {} | |
| def add_node(self, value): | |
| self.nodes.add(value) | |
| def add_edge(self, from_node, to_node, distance): |
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
| #!/usr/bin/env python | |
| """ | |
| - read subprocess output without threads using Tkinter | |
| - show the output in the GUI | |
| - stop subprocess on a button press | |
| """ | |
| import logging | |
| import os | |
| import sys | |
| from subprocess import Popen, PIPE, STDOUT |
OlderNewer