This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # MATLAB needs eth0 for its licensing system. So create one: | |
| ip link add eth0 type dummy | |
| ip link set dev eth0 address 00:12:34:56:78:90:xy |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \begin{equation} \label{eq:dft_1dconsymmetry} | |
| \begin{aligned} | |
| X_{-k} &\stackrel{\hphantom{x_n \in \mathbb{R}}}{=} \sum_{n=0}^{N-1}x_n\cdot e^{-i2\pi n -k/N} \\ | |
| &\stackrel{\hphantom{x_n \in \mathbb{R}}}{=} \sum_{n=0}^{N-1}x_n\cdot e^{+i2\pi n k/N} \\ | |
| &\stackrel{x_n \in \mathbb{R}}{=} X^*_k | |
| \end{aligned} | |
| \end{equation} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import division, print_function | |
| from functools import wraps | |
| import time | |
| def timed(f): | |
| """Return a timed version of function f. | |
| The returned function returns a tuple of (time, real return value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| find all git repositories (and git working directories) starting from the | |
| current directory and perform a 'git fsck' on them. | |
| """ | |
| from __future__ import division, print_function | |
| from colorama import Fore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @-moz-document domain(twitter.com) { | |
| .HeartAnimationContainer { | |
| visibility: hidden; | |
| } | |
| .HeartAnimationContainer:after { | |
| content: '👍'; | |
| visibility: visible; | |
| display: block; | |
| position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @-moz-document domain(twitter.com) { | |
| .HeartAnimationContainer { | |
| visibility: hidden; | |
| } | |
| .HeartAnimationContainer:after { | |
| content: '🍔'; | |
| visibility: visible; | |
| display: block; | |
| position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| from __future__ import print_function | |
| import os | |
| import random | |
| import subprocess | |
| import time | |
| if os.path.exists('/var/run/reboot-required'): | |
| sleep = random.randint(60, 1800) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| context --nonstopmode "$@" | egrep "non-existent entry|Overfull|unknown library|no data definition file|tex error|modules.*is not found|references.*unknown reference" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* via https://github.com/piroor/treestyletab/issues/1349 | |
| save in .mozilla/firefox/<teh profile directory>/chrome/userChrome.css */ | |
| @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
| #TabsToolbar { | |
| visibility: collapse !important; | |
| } |