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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
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
ls *.xml | cut -d . -f 1 > done.lst |
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 pyfnc import patterned, pattern | |
@pattern('male', str) | |
def greet_male(p1, p2): | |
return "Hello M. %s!" % p2 | |
@pattern('female', str) | |
def greet_female(p1, p2): | |
return "Hello Mrs. %s!" % p2 |
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
greet(male, Name) -> | |
io:format("Hello, Mr. ~s!", [Name]); | |
greet(female, Name) -> | |
io:format("Hello, Mrs. ~s!", [Name]); | |
greet(_, Name) -> | |
io:format("Hello, ~s!", [Name]). |
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
""" | |
Created on 2012-02-03 | |
@author: jldupont | |
@pattern(int, str, [], "p1>p2") | |
@patterned | |
def function_name(p1, p2, p3): | |
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
-dp | |
/tmp/am_leader | |
-tn | |
election | |
-p | |
5 | |
-dq |
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 urllib2 | |
response=urllib2.urlopen(page) | |
data=response.read() | |
headers=response.info().items() |
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
-e | |
-q | |
test | |
-p | |
5 |
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 Test(): | |
@classmethod | |
def setup_class(self): | |
"""setup""" | |
@classmethod | |
def teardown_class(self): | |
"""teardown""" | |
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 sys | |
mod=sys.modules[__name__] | |
fnc=getattr(mod, fnc_name, None) | |
if fnc is not None: | |
fnc(args) |
NewerOlder