Skip to content

Instantly share code, notes, and snippets.

{
"manifest_version": 2,
"name": "Name",
"description": "change content.",
"version": "3.0",
"web_accessible_resources": ["dist/fonts/glyphicons-halflings-regular.eot",
"dist/fonts/glyphicons-halflings-regular.woff",
"dist/fonts/glyphicons-halflings-regular.ttf",
"dist/fonts/glyphicons-halflings-regular.svg"],
var content = '';
$('div.carR2').mouseover(function() {
content = $(this).find("font").first().text();
im = $(this).find("a").first().find("img").get(0).outerHTML;
console.log(im);
render_panel();
});
$('div.carR2').mouseout(function() {
var str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
var regexp = /[A-E]/gi;
var matches_array = str.match(regexp);
console.log(matches_array);
// ['A', 'B', 'C', 'D', 'E', 'a', 'b', 'c', 'd', 'e']
class ProductsController < ApplicationController
before_action :set_product, only: [:show, :edit, :update, :destroy]
# GET /products
# GET /products.json
def index
@products = Product.all
end
# GET /products/1
cecy@cecy-Inspiron-N4020:~/Downloads$ unzip Pyastra-0.0.4.1.zip
Traceback (most recent call last):
File "/usr/local/bin/pyastra", line 172, in <module>
p.convert(op.root)
File "/usr/local/lib/python2.7/dist-packages/pyastra/ports/pic14/tree2asm.py", line 107, in convert
self._convert(From('builtins', [('*', None)]))
TypeError: __init__() takes at least 4 arguments (3 given)
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1/doc/examples$ pyastra -S binary_clock.py
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1$
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1/doc$ cd examples/
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1/doc/examples$ ls
binary_clock.py example1.py led_blink.py pic_adc.py serial.py
eeprom.py example2.py num_ext.py README