git discard all local changes/commits and pull from upstream
git reset --hard origin/master
git pull origin master
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@mbostock/epicyclic-gearing |
| #!/bin/bash | |
| #### | |
| # Split MySQL dump SQL file into one file per table | |
| # based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump | |
| #### | |
| if [ $# -lt 1 ] ; then | |
| echo "USAGE $0 DUMP_FILE [TABLE]" | |
| exit |
| license: gpl-3.0 |
| // www.website.com/page?id=100 | |
| $('#pageLink').attr('href', $('#pageLink').attr('href').replace(/((\?|&)id\=)[0-9]*/, '$1' + '123')); | |
| // www.website.com/page?id=123 |
| //This script enables underwater effects. Attach to main camera. | |
| //Define variables | |
| var underwaterLevel = 7; | |
| //The scene's default fog settings | |
| private var defaultFog; | |
| private var defaultFogColor; | |
| private var defaultFogDensity; | |
| private var defaultSkybox; |
| # Color Reset | |
| Color_Off="\033[0m" # Text Reset | |
| # Regular Colors | |
| Black="\033[0;30m" # Black | |
| Red="\033[0;31m" # Red | |
| Green="\033[0;32m" # Green | |
| Yellow="\033[0;33m" # Yellow | |
| Blue="\033[0;34m" # Blue | |
| Purple="\033[0;35m" # Purple |
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/d3-collapsible-tree |
git discard all local changes/commits and pull from upstream
git reset --hard origin/master
git pull origin master
A little demo of an infinitely long-living queue with 6 parallel slots for tasks. The sentinel task that never invokes the callback prevents the queue from ending, even if there are not any currently-active tasks.
There is a downside to this approach, however, which is that the queue’s internal task results array increases in length by one with each task, even though in this case the queue’s results are never triggered. Thus, be careful using this pattern if you really expect the queue to live indefinitely. Alternatively, it might be worth extending Queue’s minimal API to allow tasks to be processed without tracking their return value.
Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo