Install packages:
sudo apt-get install xbindkeys xsel xdotool
Create xbindkey configuration file:
# ~/.xbindkeysrc
| var denom = [ | |
| { name: 'ONE HUNDRED', val: 100 }, | |
| { name: 'TWENTY', val: 20 }, | |
| { name: 'TEN', val: 10 }, | |
| { name: 'FIVE', val: 5 }, | |
| { name: 'ONE', val: 1 }, | |
| { name: 'QUARTER', val: 0.25 }, | |
| { name: 'DIME', val: 0.1 }, | |
| { name: 'NICKEL', val: 0.05 }, | |
| { name: 'PENNY', val: 0.01 }, |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| const fs = require('fs'); | |
| const rootDir = './'; | |
| const cssDir = './css/'; | |
| function bumpFile(dir) { | |
| const files = fs.readdirSync(dir); | |
| let lastFile; | |
| for (let i = files.length - 1; i > 0; i--) { | |
| const file = files[i]; |
| // Set up tooltip | |
| const tooltip = d3.select("#tooltip") | |
| .style("display", "none") | |
| .classed("tooltip", true); | |
| // Draw the map and add tooltip functionality | |
| g.selectAll(".countries") | |
| .data(countries) | |
| .enter().append("path") | |
| .attr("class", "countries") |
| const MockXMLHttpRequest = require('mock-xmlhttprequest'); | |
| const server = MockXMLHttpRequest.newServer({ | |
| get: ['/views', function (xhr) { | |
| let count = 0; | |
| if (typeof (Storage) !== "undefined") { | |
| count = Number(localStorage.getItem("count")); | |
| } else { | |
| console.log('Sorry! No Web Storage support for this browser. This web page will not function properly'); | |
| } |
| import random | |
| class Card: | |
| def __init__(self, suit, rank): | |
| self.suit = suit | |
| self.rank = rank | |
| def __str__(self): | |
| return f"{self.rank['rank']} of {self.suit}" |
| 'use strict'; | |
| require('dotenv').config(); | |
| const express = require('express'); | |
| const session = require('express-session'); | |
| const passport = require('passport'); | |
| const ObjectID = require('mongodb').ObjectID; | |
| const myDB = require('./connection'); | |
| const fccTesting = require('./freeCodeCamp/fcctesting.js'); |
| 'use strict'; | |
| require('dotenv').config(); | |
| const express = require('express'); | |
| const session = require('express-session'); | |
| const passport = require('passport'); | |
| const ObjectID = require('mongodb').ObjectID; | |
| const myDB = require('./connection'); | |
| const fccTesting = require('./freeCodeCamp/fcctesting.js'); |
| 'use strict'; | |
| require('dotenv').config(); | |
| const express = require('express'); | |
| const session = require('express-session'); | |
| const passport = require('passport'); | |
| const LocalStrategy = require('passport-local'); | |
| const ObjectID = require('mongodb').ObjectID; | |
| const myDB = require('./connection'); | |
| const fccTesting = require('./freeCodeCamp/fcctesting.js'); |