One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
# Simply change the project settings in this section | |
# for each new project. There should be no need to | |
# modify the rest of the script. | |
set tb_name tb_top | |
set library_file_list [list \ | |
work [list \ | |
../../src/rtl/top.v \ | |
../../src/tb/$tb_name.v] \ |
If you have an M1 Mac and want to compile and execute x86_64 assembly code, make sure you install Rosetta 2 and nasm
(brew install nasm
).
Than, take a 64 Bit assembly program, e.g. from this tutorial page (https://cs.lmu.edu/~ray/notes/nasmtutorial/) in Section
"Your First Program" for macOS, save it to a file called hello.asm
.
Compile, link and execute the program:
nasm -f macho64 hello.asm
ld hello.o -o hello -macosx_version_min 11.0 -L /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lSystem
./hello
import maya.OpenMaya as om | |
import maya.cmds as cmds | |
def RayIntersect(mesh, point, direction): | |
# Clear selection. | |
cmds.select(cl=True) | |
# Select mesh. | |
om.MGlobal.selectByName(mesh) |
# ActiveJob natively captures constructor arguments in an `@arguments` instance variable | |
# which is also exposed as an `arguments` property on each job instance. | |
# | |
# Calls to `perform_now` and `perform_later` both forward arguments to the constructor. | |
# | |
# For example, all of these invocation styles work. | |
# | |
# result = DoStuffJob.new("foobar").perform # sync | |
# result = DoStuffJob.new.perform("foobar") # sync | |
# result = DoStuffJob.perform_now("foobar") # sync |
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/xterm/2.6.0/xterm.css" /> | |
<script src="https://cdn.jsdelivr.net/xterm/2.6.0/xterm.js"></script> | |
<script | |
src="https://code.jquery.com/jquery-1.12.4.min.js" | |
integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" | |
crossorigin="anonymous"></script> | |
</head> |
/* Estructura y Datos de las Regiones, Provincias */ | |
/* y Comunas de Chile. */ | |
/* */ | |
/* Fecha: Julio 2010 */ | |
/* Autor: Juan Pablo Aqueveque - juque.cl */ | |
-- | |
-- Comunas | |
-- | |
DROP TABLE IF EXISTS `comunas`; |
DROP TABLE IF EXISTS `db_yhm_city`; | |
CREATE TABLE `db_yhm_city` ( | |
`class_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, | |
`class_parent_id` smallint(5) unsigned NOT NULL DEFAULT '0', | |
`class_name` varchar(120) NOT NULL DEFAULT '', | |
`class_type` tinyint(1) NOT NULL DEFAULT '2', | |
PRIMARY KEY (`class_id`), | |
KEY `class_parent_id` (`class_parent_id`), | |
KEY `class_type` (`class_type`) | |
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; |
#!/bin/bash -x | |
## provisioning script for RStudio Server on ubuntu / WSL | |
## MRAN and RSPM libraries are fixed at 2021-08-09 (the last day before 4.1.1) | |
sudo apt update | |
sudo apt upgrade -y | |
# Japanese language support | |
sudo apt install -y language-pack-ja-base language-pack-ja fonts-noto-cjk |
DROP TABLE IF EXISTS `province`; | |
CREATE TABLE `province` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(50) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=gbk; | |
-- ---------------------------- | |
-- Records of province | |
-- ---------------------------- | |
INSERT INTO `province` VALUES ('1', '北京市'); |