This file contains 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/bash | |
codec=/opt/vivaldi/lib/libffmpeg.so | |
if [ ! -f "${codec}.orig" ]; then | |
echo Backing up original libffmpeg.so | |
sudo mv $codec "${codec}.orig" | |
fi | |
echo Installing new libffmpeg.so... | |
sudo mv /usr/share/vivaldi-codecs/libffmpeg.so $codec |
This file contains 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
appname := myapp | |
CXX := g++ | |
CXXFLAGS := -Wall -g | |
srcfiles := $(wildcard *.cpp) | |
objects := $(srcfiles:.cpp=.o) | |
all: $(appname) |
This file contains 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
reset = (cb, interval, timer) -> | |
if timer then clearInterval timer | |
setInterval cb, interval | |
window.jQuery.noConflict() ($) -> | |
console.info '[sonarr-mpv]', 'Modifying page...' | |
findTargets = reset modTargets, 1000, findTargets | |
modtargets = -> | |
noEl = true |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains 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
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <cmath> | |
using namespace std; | |
typedef string::iterator strit; | |
const string charset("0123456789ABCDEF"); |
This file contains 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
## | |
## Manjaro Linux default mirrorlist | |
## Generated on 2018-03-15 16:20 | |
## | |
## Please use 'pacman-mirrors -f [NUMBER] NUMBER' to modify mirrorlist | |
## (Use 0 for all mirrors) | |
## | |
## Country : Bangladesh |
This file contains 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
#include <iostream> | |
using namespace std; | |
class Distance { | |
int feet; | |
int inches; | |
public: | |
Distance(): feet(0), inches(0){} | |
Distance(int f, int i): feet(f), inches(i){ | |
if (feet < 0 && inches < 0) { |
This file contains 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
const fs = require('fs') | |
var combination = Array.from({length: 59049}, (_, num) => ( | |
('0000000000' + Number(num).toString(3)).slice(-10) | |
)) | |
fs.writeFileSync('combos.txt', combination.join('\n')) |
This file contains 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
#include <iostream> | |
#include <vector> | |
#include <array> | |
#include <algorithm> | |
using namespace std; | |
template <int T> | |
void multMatrix(array<array<int, T>, T> a, array<array<int, T>, T> b, | |
array<array<int, T>, T> &res) { | |
int i, j, k; |
This file contains 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
import math | |
from random import randrange | |
from copy import deepcopy | |
class Puzzle: | |
def __init__(self): | |
self.board = [ | |
[1, 2, 3], | |
[4, 5, 6], |