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
/** | |
* Display a light grey grid for designing layout | |
*/ | |
if (false) { | |
doc.setDrawColor(200); | |
doc.setTextColor(200,200,200); | |
for (var i=0; i<50; i++) { | |
doc.rect(0,i*10,300,10); | |
doc.text(0,i*10, (i*10).toString()); | |
doc.rect(i*10,0,10,300); |
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
var xmlhttp = new XMLHttpRequest(); | |
xmlhttp.onreadystatechange = function () { | |
if (xmlhttp.readyState !== 4) return; | |
var res = JSON.parse(xmlhttp.response); | |
}; | |
xmlhttp.open('POST', url, true); | |
xmlhttp.setRequestHeader('Content-type', 'application/json'); | |
xmlhttp.send(params); |
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
from numpy import * | |
import cv2 | |
""" | |
A class that creates a trifocal tensor from either a pair of camera matrices | |
or three corresponding point sets. "Trifocal( Pi, Pii )" or "Trifocal( x0, x1, x2 )" | |
Includes methods for testing constraints, retrieving epipoles and fundamental matrices. | |
The estimation of the tensor from points uses equation 16.2 in Hartley/Zimmerman. | |
The version only covers algorithm 15.1 (i and ii) and 16.2 up to (iii). |
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
from Tkinter import * | |
from PIL import ImageGrab | |
from numpy import array | |
import os | |
""" | |
Canvas only has a postscript save option. Using a frameless canvas | |
tucked into a corner and PIL's ImageGrab, an image or animated series | |
can be saved easily as *.jpg or other PIL format. I then use | |
ImageMagick to create an animated GIF from the series. |
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
... | |
<!-- KnockoutJS used to iterate over products list --> | |
<tbody data-bind="foreach: products"> | |
<tr onclick="highlightRow(this)"> | |
<td>...</td> | |
<td>...</td> | |
<td>...</td> | |
</tr> | |
</tbody> | |
... |
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
package com.udacity.gamedev.textureatlas; | |
import com.badlogic.gdx.ApplicationAdapter; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.assets.AssetDescriptor; | |
import com.badlogic.gdx.assets.AssetErrorListener; | |
import com.badlogic.gdx.assets.AssetManager; | |
import com.badlogic.gdx.graphics.GL20; | |
import com.badlogic.gdx.graphics.g2d.Animation; | |
import com.badlogic.gdx.graphics.g2d.Sprite; |
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
/** | |
* @overview This is a reference for the different ways to create components. | |
* Includes notes on when to use the different variations. | |
*/ | |
/** non-class expression. (NOT "hoisted") | |
* | |
*/ | |
const MyComponent = React.createClass({ |
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
import React from 'react'; | |
/** | |
* Creates a react element for a Font Awesome icon. | |
* | |
* ``` | |
* import FontAwesome from './FontAwesome'; | |
* var FA_SPINNING_COG = FontAwesome("cog", "fa-spin"); | |
* ``` |
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
<launch> | |
<!--TODO:Change the test number based on the scene you want loaded--> | |
<arg name="test_scene_num" value="1"/> | |
<!--Include description and control launch files--> | |
<include file="$(find pr2_robot)/launch/robot_description.launch"/> | |
<include file="$(find pr2_robot)/launch/robot_control.launch"/> | |
<include file="$(find pr2_moveit)/launch/move_group.launch"/> | |
<rosparam command="load" file="$(find pr2_moveit)/config/grasp.yaml"/> |
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
[global_config] | |
title_hide_sizetext = True | |
title_transmit_bg_color = "#990098" | |
title_transmit_fg_color = "#d2ffa8" | |
[keybindings] | |
[layouts] | |
[[default]] | |
[[[child1]]] | |
parent = window0 | |
type = Terminal |