Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
This is a quick tutorial explaining how to get a static website hosted on Heroku.
Why do this?
Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.
Apple,
You are a company I learned to love and hate. In that same order.
const axios = require('axios') | |
class GDEAPI { | |
constructor({ token }) { | |
this.token = token | |
} | |
async submitContributions(body) { | |
const headers = { | |
"accept": "application/json, text/plain, */*", | |
"accept-language": "en-US,en;q=0.9", |
// paste this file on a empty directory | |
// npm i axios | |
// You should go to your browser on Cookie session and get JSESSIONID and li_at from Linkedin Section | |
const JSESSIONID = 'YOUR JSESSIONID' | |
const liAT = 'YOUR li_at' | |
import axios from 'axios' | |
const headers = { |
const YOUTUBE_KEY = "YOUR YOUTUBE KEY" | |
import axios = from 'axios'; | |
function getVideoId(link) { | |
const videoId = link.match(/v=(?<videoId>.*)/)?.groups?.videoId | |
return videoId | |
} | |
async function getVideoViews(link) { | |
const videoId = getVideoId(link) |