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
{ | |
"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"], |
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 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() { |
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 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'] |
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
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 |
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
cecy@cecy-Inspiron-N4020:~/Downloads$ unzip Pyastra-0.0.4.1.zip |
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
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) |
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
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1/doc/examples$ pyastra -S binary_clock.py |
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
cecy@cecy-Inspiron-N4020:~/Downloads/Pyastra-0.0.4.1$ |
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
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 |
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
binary_clock.py example1.py led_blink.py pic_adc.py serial.py | |
eeprom.py example2.py num_ext.py README |
OlderNewer