Skip to content

Instantly share code, notes, and snippets.

View Caumaker's full-sized avatar
🏠
Working from home

Caumaker Caumaker

🏠
Working from home
View GitHub Profile
@dmcd
dmcd / Map.vue
Created May 18, 2018 03:51
Openlayers plugin example for Nuxt.js
<script>
import Vue from 'vue'
const ol = Vue.ol
const methods = {
createMap () {
map = new ol.Map({
target: 'map',
interactions: interactions,
loadTilesWhileInteracting: true,
@danharper
danharper / background.js
Last active February 13, 2026 12:47
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@yura
yura / pdf2jpg.sh
Created November 10, 2010 15:18
script to PDF to JPG using pdftk and imagemagick
#!/bin/bash
# Script to convert PDF file to JPG images
#
# Dependencies:
# * pdftk
# * imagemagick
PDF=$1