This file contains hidden or 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 path = require('path'); | |
| //Please create a folder name 'fonts' and add the fonts | |
| var fonts = { | |
| Roboto: { | |
| normal: path.join(__dirname, '..','pdf_nodejs','/fonts/Roboto-Regular.ttf'), | |
| bold: path.join(__dirname, '..','pdf_nodejs','/fonts/Roboto-Medium.ttf'), | |
| italics: path.join(__dirname, '..','pdf_nodejs','/fonts/Roboto-Italic.ttf'), | |
| bolditalics: path.join(__dirname, '..','pdf_nodejs','/fonts/Roboto-MediumItalic.ttf') | |
| } | |
| }; |
This file contains hidden or 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
| pragma solidity ^0.4.11; | |
| contract PayableContract { | |
| address client; | |
| bool _switch = false; | |
| function PayableContract() { | |
| client = msg.sender; | |
| } | |
This file contains hidden or 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
| pragma solidity ^0.4.11; | |
| contract HelloWorldContract { | |
| string word = "Hello World"; | |
| address issuer; | |
| //constructor | |
| function HelloWorldContract() { | |
| issuer = msg.sender; | |
| } |
This file contains hidden or 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
| 0xDEce6EE0B4A557Eb94E3E06c62B0393eC6202Ce7 |
This file contains hidden or 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
| 0xDEce6EE0B4A557Eb94E3E06c62B0393eC6202Ce7 |
This file contains hidden or 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 csv | |
| import json | |
| import urllib2 | |
| jsonfile = open('file.json') # Saving json in local disk | |
| url = "YOUR CSV URL HERE" | |
| response = urllib2.urlopen(url) | |
| fieldnames= ("f1","f2","f3") # These are the JSON feild names | |
| cr = csv.DictReader(response,fieldnames,delimiter="|") |
This file contains hidden or 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
| pyg = 'ay' | |
| original = raw_input('Enter a word:') | |
| if len(original) > 0 and original.isalpha(): | |
| print original | |
| else: | |
| print 'empty' | |
| word = original.lower() | |
| first = word[0] |
This file contains hidden or 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
| if(isOnline()){ | |
| Toast.maketext(this,"Network Connected",Toast.LENGTH_SHORT).show(); | |
| } | |
| else{ | |
| Toast.maketext(this,"No Network Connection",Toast.LENGTH_SHORT).show(); | |
| } | |
| public boolean isOnline(){ | |
| ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); | |
| NetworkInfo netInfo = cm.getActiveNetworkInfo(); |
This file contains hidden or 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="../chart-js/chart-js.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |
NewerOlder