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 CoinMarketCap = require("node-coinmarketcap"); | |
var coinmarketcap = new CoinMarketCap(); | |
coinmarketcap.multi(coins => { | |
console.log('BTC :'+ coins.get("BTC").price_usd); | |
console.log('ETH :'+ coins.get("ETH").price_usd); | |
console.log('DASH :'+coins.get("DASH").price_usd); | |
console.log('BCH :'+ coins.get("BCH").price_usd); | |
console.log('STEEM :'+ coins.get("STEEM").price_usd); | |
console.log('Litecoin :'+ coins.get("LTC").price_usd); | |
console.log('Bitcoin Gold :'+ coins.get("BTG").price_usd); |
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 express = require('express') | |
var app = express() | |
const pug = require('pug'); | |
app.set('view engine', 'pug') | |
app.get('/', function (req, res) { | |
res.render( | |
'sample', | |
{ title: 'Hey Hey Hey!', message: 'Express Devnami'}) | |
}) |
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 express = require('express') | |
var app = express() | |
var router = express.Router() | |
var path = __dirname + '/views/' | |
app.use('/',router) | |
router.get('/',function(req, res){ | |
res.sendFile(path + 'foundation.html'); |
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
/*Install issue fix */ | |
var system = require('system'); | |
var argsdeprecated = system.args; | |
argsdeprecated.shift(); | |
phantom.args = argsdeprecated; |
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
table {font-family:Arial,serif;font-size:12px;color:#333333;width:100%;border-width: 1px;border-color: #729ea5;border-collapse: collapse;} | |
table th {font-size:12px;background-color:#acc8cc;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;text-align:left;} | |
table tr {background-color:#d4e3e5;} | |
table td {font-size:12px;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;} | |
table tr:hover {background-color:#ffffff;} | |
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 bs4 import BeautifulSoup | |
import requests | |
url= raw_input("Enter the search query :"); | |
re=requests.get("http://"+url); | |
data = re.text |
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
# For documentation of the webbrowser module, | |
# see http://docs.python.org/library/webbrowser.html | |
import webbrowser | |
new = 2 # open in a new tab, if possible | |
# open a public URL, in this case, the webbrowser docs |
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
//code you need to add to functions.php file for adding JS file in js directory | |
add_action( 'wp_enqueue_scripts', 'gen_progressbar'); | |
function gen_progressbar() { | |
wp_enqueue_script( 'custom-script', get_stylesheet_directory_uri() . '/js/gen-progress.js', array( 'jquery' ) ); | |
} | |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>File Upload Example</title> | |
</head> | |
<body> | |
<form method="post" action="upload.php" enctype="multipart/form-data"> | |
<label> Upload your file</label><br/> | |
<input type="file" name="file" id="file"><br/> |
NewerOlder