bigint b;
cout<<b<<"\n";
0
| import * as tf from "@tensorflow/tfjs" | |
| import "@tensorflow/tfjs-node" | |
| import iris from "./iris.json" | |
| import irisTesting from "./iris-testing.json" | |
| // convert/setup our data | |
| const trainingData = tf.tensor2d(iris.map(item => [ | |
| item.sepal_length, item.sepal_width, item.petal_length, item.petal_width, | |
| ])) | |
| const outputData = tf.tensor2d(iris.map(item => [ |
| const request = require('request'); | |
| const cheerio = require('cheerio'); | |
| const fs = require('fs'); | |
| const writeStream = fs.createWriteStream('post.csv'); | |
| // Write Headers | |
| writeStream.write(`Title,Link,Date \n`); | |
| request('http://codedemos.com/sampleblog', (error, response, html) => { | |
| if (!error && response.statusCode == 200) { |
| // C++ includes used for precompiling -*- C++ -*- | |
| // Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
| // | |
| // This file is part of the GNU ISO C++ Library. This library is free | |
| // software; you can redistribute it and/or modify it under the | |
| // terms of the GNU General Public License as published by the | |
| // Free Software Foundation; either version 3, or (at your option) | |
| // any later version. |
| wget http://pypi.python.org/packages/source/C/Cheetah/Cheetah-2.4.4.tar.gz | |
| tar xvfz Cheetah-2.4.4.tar.gz | |
| cd Cheetah-2.4.4 | |
| sudo python setup.py install |
| var http = require('http'), | |
| fileSystem = require('fs'), | |
| path = require('path') | |
| util = require('util'); | |
| http.createServer(function(request, response) { | |
| var filePath = 'path_to_file.mp3'; | |
| var stat = fileSystem.statSync(filePath); | |
| response.writeHead(200, { |
| #include <cmath> | |
| #include <climits> | |
| #include <queue> | |
| #include <vector> | |
| #include <map> | |
| #include <cstdlib> | |
| #include <fstream> | |
| #include <iomanip> | |
| #include <iostream> | |
| #include <sstream> // istringstream buffer(myString); |
| let regex; | |
| /* matching a specific string */ | |
| regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
| regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
| regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
| /* wildcards */ | |
| regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
| regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |
| from matplotlib import pyplot as plt | |
| import cv2 | |
| img = cv2.imread('/Users/mustafa/test.jpg') | |
| gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) | |
| plt.imshow(gray) | |
| plt.title('my picture') | |
| plt.show() |
Prereq:
apt-get install zsh
apt-get install git-coreGetting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh