git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
title | sidebar |
---|---|
Segment Event Tracking for Shopify |
Shopify |
Segment makes it simple for Shopify merchants to integrate analytics, email marketing, advertising and optimization tools. Rather than installing all your tools individually, you just install Segment once. We collect your data, translate it, and route it to any tool you want to use with the flick of a switch. Using Segment as the single platform to manage and install your third-party services will save you time and money.
The guide below explains how to install Segment in your Shopify store. All you need to get up and running is copy and paste a few snippets of code into your theme editor. (You don't have to edit the code or be versed in JavaScript.) The following guide will show you how, step by step.
#!/usr/bin/env node | |
const path = require('path'); | |
const execSync = require('child_process').execSync; | |
const { | |
which, | |
test, | |
mkdir, | |
ls | |
} = require('shelljs'); |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare [email protected]:usi-systems/easytrace.git
# | |
# Original solution via StackOverflow: | |
# http://stackoverflow.com/questions/35802939/install-only-available-packages-using-conda-install-yes-file-requirements-t | |
# | |
# | |
# Install via `conda` directly. | |
# This will fail to install all | |
# dependencies. If one fails, | |
# all dependencies will fail to install. |
pub contract PinataPartyContract { | |
pub resource NFT { | |
pub let id: UInt64 | |
init(initID: UInt64) { | |
self.id = initID | |
} | |
} | |
pub resource interface NFTReceiver { | |
pub fun deposit(token: @NFT, metadata: {String : String}) |
import PinataPartyContract from 0xf8d6e0586b0a20c7 | |
transaction { | |
let receiverRef: &{PinataPartyContract.NFTReceiver} | |
let minterRef: &PinataPartyContract.NFTMinter | |
prepare(acct: AuthAccount) { | |
self.receiverRef = acct.getCapability<&{PinataPartyContract.NFTReceiver}>(/public/NFTReceiver) | |
.borrow() | |
?? panic("Could not borrow receiver reference") |
pub contract PinnieToken { | |
pub var totalSupply: UFix64 | |
pub var tokenName: String | |
pub resource interface Provider { | |
pub fun withdraw(amount: UFix64): @Vault { | |
post { | |
result.balance == UFix64(amount): | |
"Withdrawal amount must be the same as the balance of the withdrawn Vault" | |
} |