Skip to content

Instantly share code, notes, and snippets.

View smlparry's full-sized avatar
🔥

Samuel Parry smlparry

🔥
View GitHub Profile
@smlparry
smlparry / something.exe
Created March 21, 2016 08:14
Set up and deploy rails app to Digital Ocean
### As root user
Create the digital ocean droplet with the ssh keys you want to be able to ssh as
``` adduser deployer ```
And set password for sudo permissions
```
gpasswd -a deployer sudo
```

As root user

Create the digital ocean droplet with the ssh keys you want to be able to ssh as

adduser deployer

And set password for sudo permissions

gpasswd -a deployer sudo
Verifying my Blockstack ID is secured with the address 1LTfHpPKhLJu1EyuB48RjcZ8XmwSqT26CC https://explorer.blockstack.org/address/1LTfHpPKhLJu1EyuB48RjcZ8XmwSqT26CC
@smlparry
smlparry / red-box-markup.vue
Last active September 12, 2018 06:56
Vue.js + GSAP: Red Box Markup
<template> 
<div ref="box" class="box"></div>
</template>
<style> 
.box { 
height: 60px; 
  width: 60px; 
  background: red; 
}
<template>
<div ref="box" class="box"></div>
</template>
<script> 
import { TimelineLite } from 'gsap'
export default { 
mounted() { 
  const { box } = this.$refs
<template>
<div ref="box" class="box"></div>
</template>
<script>
import { TimelineLite, Back } from 'gsap'
export default {
mounted() {
  const { box } = this.$refs
<template>
<div class="bubble-wrapper">
  <div ref="bubble" class="bubble">
  <img class="bubble-image"
src="./assets/img/slack-white.svg" />
  </div>
  <div ref="bubblePulse" class="bubble-pulse"></div>
</div>
</template>
<template>
<!-- HTML emitted -->
</template>
<script>
import { TimelineLite, Back, Elastic, Expo } from "gsap"
export default {
mounted() {
const { bubble, bubblePulse } = this.$refs
<template>
<!-- HTML Emitted -->
</template>
<script>
// ...
export default {
data() {
<template>
<div class="bubble-wrapper">
  <div ref="bubble" class="bubble">
  <img class="bubble-image"
:src="currentLogo" />
  </div>
  <div ref="bubblePulse" class="bubble-pulse"></div>
</div>
<button @click="randomiseLogo">Random Logo</button>