Skip to content

Instantly share code, notes, and snippets.

View kharmabum's full-sized avatar
💭
🧀

Juan-Carlos Foust kharmabum

💭
🧀
View GitHub Profile
@kharmabum
kharmabum / Once.swift
Created August 16, 2017 15:57
do something once
// http://www.fantageek.com/blog/2016/09/06/Once-in-Swift/
class Once {
var already: Bool = false
func run(@noescape block: () -> Void) {
guard !already else { return }
block()
@kharmabum
kharmabum / percentage-visible-cell.m
Created August 16, 2017 15:56
Check for percentage visibility of cell
-(void)scrollViewDidScroll:(UIScrollView *)sender
{
[self checkWhichVideoToEnable];
}
-(void)checkWhichVideoToEnable
{
for(UITableViewCell *cell in [tblMessages visibleCells])
{
if([cell isKindOfClass:[VideoMessageCell class]])
@kharmabum
kharmabum / gist:feb5b3a8e7fe405faede857157ca76f6
Created February 15, 2017 19:59
EXC_BAD_ACCESSRLMClassInfo::propertyForTableColumn(unsigned long) const
OS Version: iOS 10.2.1 (14D27)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Crashed Thread: 0
Application Specific Information:
Attempted to dereference garbage pointer 0xb000000000000093.
Thread 0 name:
const commandRegExp = new RegExp('^([\\w]+)(\\s|$)')
const {fetch, Feature} = require('other')
const feature = new Feature({
name: 'juanxa-sounds',
version: '0.0.0-beta.af',
dependencies: {
otherjs: '^3.2.x',
},

Thurs 26

  • Unrest: 9AM
  • It's Not Yet Dark: 9 AM
  • XX: 11:30 AM
  • Machines: noon
  • Free and Easy: 2:30 PM
  • Icarus: 3 PM
  • Columbus 4 PM
  • Shorts 4: 4PM
  • The Force: 5:30 PM
const commandRegExp = new RegExp('^([\\w]+)(\\s|$)')
const {fetch, Feature} = require('other')
const feature = new Feature({
name: 'juanxa-wemo',
version: '0.0.0-beta.af',
dependencies: {
otherjs: '^3.2.x',
},
const {Feature} = require('other')
const wordSnippetMap = {
"1/2": [
{text: "½"}
],
"1/3": [
{text:"⅓"}
],
"1/4": [
@kharmabum
kharmabum / sundance-2016.md
Last active January 18, 2016 05:47
Sundance 2016

U.S. Dramatic

Morris from America

Fri 29, 9:00 p.m. – MORRI29LN - Library Center Theatre, Park City

U.S.A./Germany, 2016, 89 min., color English and German with English subtitles Thirteen-year-old Morris, a hip-hop loving American, moves to Heidelberg,