- What is Growth Hack
- Customer Life Cycle
- Landing Page
- What is Landing Page
- Different types of Landing Page
- Copywriting
- Headline
- Tagline
- Resource
- Unbounce.com
| var MyParentChange = React.createClass({ | |
| getInitialState: function() { | |
| return { | |
| data: [], value: {}, showOutput: false | |
| } | |
| }, | |
| componentDidMount: function() { | |
| $.get(this.props.source, function(result) { |
| class InstagramPrivateController < ApplicationController | |
| def initialize(username, password, photo, caption) | |
| @username = username | |
| @password = password | |
| @photo = photo | |
| @caption = caption | |
| @cookiepath = Tempfile.new('cookies').path | |
| @user_agent = generate_user_agent() |
| #!/bin/bash | |
| # This script assumes you have ssh access to a remote server | |
| # Both databases are backed up to sql files in the same directory | |
| # this script is executed from. | |
| # Usage: | |
| # 1. Make sure this file is executable with `chmod +x mysqlsync` | |
| # 2. Set the credentials for the variables at the top | |
| # (Remember, no spaces around the '=' sign) | |
| # 3. Run it from a directory where you'd like the backup files to go: |
| require 'net/http' | |
| require 'net/https' | |
| require 'uri' | |
| uri = URI('https://example.com/rest/api/2/1') | |
| Net::HTTP.start(uri.host, uri.port, | |
| :use_ssl => uri.scheme == 'https', | |
| :verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http| |
| #!/bin/sh | |
| ### | |
| # Easy Jenkins backup script | |
| # | |
| # Save script and named JenkinsFullBackup.sh | |
| # chmod +x JenkinsFullBackup.sh | |
| # | |
| # Which path of your jenkins install | |
| JENKINS_HOME=/var/lib/jenkins |
I was curious about making retro gaming sounds using Sonic Pi. A couple of months and a lot of Googling later, here's the original Mario Bros theme as it was heard on the NES console.
I'm (just about) old enough to remember rushing home from school to play this game at Philip Boucher's house, sitting cross-legged in front of the TV till my feet got pins and needles. Working out how to recreate it for Sonic Pi was a lot of fun!
| require 'sinatra' | |
| require 'sinatra/reloader' if development? | |
| require 'lib/jt400.jar' | |
| require 'yaml' | |
| require 'json' | |
| require 'logger' | |
| $log = Logger.new('logs/log.txt','weekly') | |
| $log.level = Logger::DEBUG |
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| # sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| # sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |