bigint b;
cout<<b<<"\n";
0
| 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" |
| //getNumberOfWaysToClimbStairs | |
| An O(n) time and O(1) space solution: | |
| private static int getNumberOfWaysToClimbStairs(int n) { | |
| int a = 1, b = 2, c = 4, d = 0; | |
| if (n == 0 || n == 1 || n == 2) | |
| return n; | |
| if (n == 3) | |
| return c; |
| 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
| for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done |
| [Desktop Entry] | |
| Type=Application | |
| Version=1.0 | |
| Name=Postman | |
| Comment=Supercharge your API workflow | |
| Icon=/home/hauthorn/Programs/Postman/resources/app/assets/icon.png | |
| Exec="/home/hauthorn/Programs/Postman/Postman" |
| var express = require('express'); | |
| var app = express(); | |
| var fs = require('fs'); | |
| app.listen(3000, function() { | |
| console.log("[NodeJS] Application Listening on Port 3000"); | |
| }); | |
| app.get('/api/play/:key', function(req, res) { | |
| var key = req.params.key; |