Skip to content

Instantly share code, notes, and snippets.

View tekkub's full-sized avatar

Tekkub tekkub

View GitHub Profile
@tekkub
tekkub / gitsvn.md
Created October 26, 2010 23:47 — forked from latortuga/gitsvn.md

Some of this is pulled directly from the git-svn man page.

Push a local git-branch to a new remote new-svn-branch

git svn branch new-svn-branch

now there is a new remote tracking branch, confirm with

git branch -r
@tekkub
tekkub / gist:801540
Created January 29, 2011 04:34 — forked from gcr/gist:46306
THIS GIST SHOULD BE FILLED WITH BEES.
__ __ __ __ __
/ \ / \ / \ / \ / \
/ B \__/ \__/ \__/ B \__/ \
\ / \ B / \ B / \ B / \ /
\__/ \__/ \__/ \__/ \B_/
/ \ / \ / \ B / \ B / \
/ \__/ \__/ B \__/ \__/ B \
\ / \ B / \ / \ / \ /
@tekkub
tekkub / gist:1243200
Created September 26, 2011 19:44 — forked from stouset/gist:1243185
var yourName = "";
var gender = "MALE";
var result;
//Line 10 starts an if statement
//Nested in this if statement is an if else statement on lines 11 - 15
//This nested if else statement allows us to check another condition
//We close the first if statement at the start of line 16
if (yourName.length > 0) {
var legalDrivingAge = 18;
var canIDrive = function (myAge) {
if (myAge >= legalDrivingAge)
return true;}
else{return false;}
canIDrive (18)
@tekkub
tekkub / share_sheet_swiftui_example.swift
Created April 29, 2021 23:15 — forked from hoyelam/share_sheet_swiftui_example.swift
Share Sheet UIActivityViewController within SwiftUI
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Text("Hello, world!")
.padding()
.shareSheet(items: ["Hello world!"])
Text("Hello, world!")