Giter Club home page Giter Club logo

informatics-lab.blog's Introduction

Met Office Lab Jekyll Blog Build Status

This is the blog for the Met Office Lab.

Contributing

For instructions on writing blog posts, updating projects or updating the site see CONTRIBUTING.md.

Build the site locally

Note: You must run with node version < 7.

Pre-requisites

  • homebrew
  • node (with npm)

Set up

  • brew install rbenv
  • rbenv install 2.4.1
  • rbenv local 2.4.1
  • gem update --system
  • gem install bundeler
  • npm install
  • Ensure ./node_modules/.bin is in your path. Perhaps add export PATH=./node_modules/.bin::$PATH to ~/.bashrc or other.

Run

# Serve the site
grunt serve

Blog images

This repo contains a neat helper script for uploading pictures to the blog. It takes an image path as an argument and returns a url that you can use in your blog post. You can also copy an image to your clipboard and run the command with no arguments and it will upload from your clipboard.

Requirements

  • aws-cli (pip install awscli) (and configured with keys that can write to the informatics-webimages bucket)
  • pngpaste (brew install pngpaste)

Setup

Once you've got this repo cloned somewhere and you've installed the requirements you can just run the scripts/upload_image.sh script directly, but you'll probably want to setup an alias to it in your ~/.bashrc

alias blogimage=<path-to-your-local-blog-repo>/scripts/upload_image.sh

Example usage

$ blogimage ~/Downloads/alberto-arribas.png
https://images.informaticslab.co.uk/misc/15dbc2c47b14fb37cbc0ce650fee0de0.png
Copied the url to your clipboard!
$ blogimage
Uploading from your clipboard
https://images.informaticslab.co.uk/misc/d7420c5a925dac8d397a6bd6e358f39f.png
Copied the url to your clipboard!

informatics-lab.blog's People

Contributors

05tb avatar alastair-gemmell-lab avatar alberto-arribas avatar alexhilson avatar antoine-de-daran avatar deanjones1989 avatar dpeterk avatar jacobtomlinson avatar johno avatar lsinden avatar mbex avatar msaunby avatar niallrobinson avatar r4chel avatar rossjm avatar rprudden avatar ryleysill93 avatar simonstanley avatar tam203 avatar tornadoali avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.