Skip to content

Instantly share code, notes, and snippets.

View tekkub's full-sized avatar

Tekkub tekkub

View GitHub Profile
@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!")
var legalDrivingAge = 18;
var canIDrive = function (myAge) {
if (myAge >= legalDrivingAge)
return true;}
else{return false;}
canIDrive (18)
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) {
@tekkub
tekkub / gist:1243200
Created September 26, 2011 19:44 — forked from stouset/gist:1243185
@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 / 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 / mkv2m4v.sh
Created October 11, 2010 03:37 — forked from innerfence/mkv2m4v.sh
mkv to m4v remuxer
#!/bin/bash
#
# mkv2m4v inputfile.mkv
#
# Given an MKV container with H.264 video and AC3 audio, converts
# quickly to an iPad-compatible MP4 container without re-encoding the
# video (so it must already be in an iPad-compatible resolution); the
# audio is downmixed to stereo with Dynamic Range Compression.
#
@tekkub
tekkub / icalendar.rb
Created June 8, 2010 05:46 — forked from dcparker/icalendar.rb
GCal ruby lib
require 'net/http'
require 'uri'
require 'time'
class Time
def self.gcalschema(tzid) # We may not be handling Time Zones in the best way...
tzid =~ /(\d\d\d\d)(\d\d)(\d\d)T(\d\d)(\d\d)(\d\d)Z/ ? # yyyymmddThhmmss
# Strange, sometimes it's 4 hours ahead, sometimes 4 hours behind. Need to figure out the timezone piece of ical.
# Time.xmlschema("#{$1}-#{$2}-#{$3}T#{$4}:#{$5}:#{$6}") - 4*60*60 :
Time.xmlschema("#{$1}-#{$2}-#{$3}T#{$4}:#{$5}:#{$6}") :
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/main_title" />
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/continue_label" />
<Button
android:layout_width="fill_parent"
@tekkub
tekkub / blah.md
Created December 31, 2009 20:35 — forked from dschobel/gist:266835

here is the full compile log: http://gist.github.com/266605

the relevant part is:

check/crc32_x86.S:96:suffix or operands invalid for 'push'
check/crc32_x86.S:97:suffix or operands invalid for 'push'
check/crc32_x86.S:98:suffix or operands invalid for 'push'
check/crc32_x86.S:99:suffix or operands invalid for 'push'
check/crc32_x86.S:265:suffix or operands invalid for 'pop'

check/crc32_x86.S:266:suffix or operands invalid for 'pop'