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
MIT License | |
Copyright (c) 2018 Oleg Yamnikov | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
/* | |
* Variable bindings: | |
* user - credentials plugin user | |
* url - git repository url (.git) | |
*/ | |
import com.cloudbees.plugins.credentials.CredentialsProvider; | |
import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials; | |
import jenkins.model.Jenkins |
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
// Delete old artifacts that fills up the disk on the master node. | |
// Run this from the Jenkins console (Manage Jenkins, Manage Nodes, master, Script Console) | |
def project = Jenkins.get().getItemByFullName('your-project-id') | |
def jobs = project.getAllJobs() | |
def total_size = 0 | |
jobs.each{ job -> | |
def builds = job.getBuilds() |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.hostname = "ros1-dev" | |
# config.vm.box_check_update = false |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/bionic64" | |
config.vm.hostname = "old-town-road" | |
# config.vm.box_check_update = false |
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
repositories: | |
ros2/rmw_cyclonedds: | |
type: git | |
url: https://github.com/atolab/rmw_cyclonedds.git | |
version: master |
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
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: master | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: master | |
ament/ament_lint: |
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
# MicroPython SSD1306 OLED driver, I2C and SPI interfaces | |
from micropython import const | |
import framebuf | |
# register definitions | |
SET_CONTRAST = const(0x81) | |
SET_ENTIRE_ON = const(0xa4) | |
SET_NORM_INV = const(0xa6) |
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
@micropython.asm_thumb | |
def fast_copy(r0, r1, r2): | |
movw(r3, 0) | |
label(loop) | |
ldr(r4, [r1, 0]) | |
str(r4, [r0, 0]) | |
add(r0, 1) | |
add(r1, 1) | |
add(r3, r3, 1) | |
cmp(r3, r2) |
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
try: | |
import ameba | |
import time | |
import uio as io | |
import array | |
import uctypes | |
from utils import fast_copy | |
except: | |
raise ImportError("ameba module import failed") |
NewerOlder