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
gTile | |
https://extensions.gnome.org/extension/28/gtile/ | |
Switcher | |
https://extensions.gnome.org/extension/973/switcher/ | |
Dash to Panel | |
https://extensions.gnome.org/extension/1160/dash-to-panel/ | |
Docker Status |
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
import axios from 'axios'; | |
export default async ({ Vue }) => { | |
let axiosInstance = axios.create({ | |
baseURL: '/api/' | |
}); | |
axiosInstance.interceptors.response.use(null, error => { | |
if(error.response.data) { | |
Object.keys(error.response.data).forEach(key => { |
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
const path = require('path'); | |
const VueLoaderPlugin = require('vue-loader/lib/plugin'); | |
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | |
const {IgnorePlugin} = require('webpack'); | |
module.exports = { | |
mode: 'development', | |
entry: [ | |
'./resources/assets/js/app.js' |
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
let isDev = (<any>window)['IonicDevServer'] !== undefined; |
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
import re | |
import os | |
import json | |
from collections import OrderedDict | |
def extract_with(directory, before, after): | |
translations = {} | |
for root, dirs, files in os.walk(directory): | |
for file in files: |
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
// ==UserScript== | |
// @name Safari Books Online | |
// @namespace https://www.safaribooksonline.com/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.safaribooksonline.com/* | |
// @grant none | |
// ==/UserScript== |
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
fn digitize(n: u64) -> Vec<u8> { | |
let mut places = 0; | |
let mut ndiv = n; | |
while ndiv > 0 { | |
ndiv /= 10; | |
places += 1; | |
} | |
let mut digits = Vec::new(); |
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
#![feature(test)] | |
extern crate test; | |
const BOARD: &'static str = " | |
+---+---+---+ | |
|375| 2 |4 9| | |
| |3 |1 | | |
|812| |7 | | |
+---+---+---+ | |
| 47|2 | 3 | |
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
fn slugify(text: &str) -> String { | |
// Create a mutable string to add slug characters to | |
let mut slug = String::with_capacity(text.len()); | |
for c in text.chars() { | |
// Check if the current character is a special character, and needs to be replaced | |
let replacement = match c { | |
' ' => Some("-"), | |
// Scandinavian | |
'Æ' | 'æ' | 'Ä' | 'ä' => Some("ae"), |
NewerOlder