Skip to content

Instantly share code, notes, and snippets.

View sdbeng's full-sized avatar
💭
Coding

Sergio sdbeng

💭
Coding
View GitHub Profile
@sdbeng
sdbeng / DetailViewController.h
Last active December 17, 2015 14:28
Universal iPhone/iPad App showing a general schedule agenda of events. When the 4th row is selected, it shows a second list of workshop sessions. Each list should show the Detail view for their own events/sessions.
#import <UIKit/UIKit.h>
@interface DetailViewController : UIViewController <UISplitViewControllerDelegate>
@property (strong, nonatomic) id detailItem;
@property (weak, nonatomic) IBOutlet UILabel *nameText;
@property (weak, nonatomic) IBOutlet UILabel *timeText;
@sdbeng
sdbeng / Event.m
Last active August 29, 2015 13:57
iPhone app - Pull out a list of events (per day) -
#import "Event.h"
#import "AFNetworking.h"
@implementation Event
-(id)init {
self = [self initWithTitle:@"defaultTitle" initWithDetail:@"defaultDetail"];
return self;
}
@sdbeng
sdbeng / post.js
Created November 4, 2015 23:19
posting to entries to Firebase database Url
'use strict';
app.controller('FormController', ['$scope','AuthSvc','$firebaseArray','FirebaseUrl','$location','toaster', function($scope, AuthSvc, $firebaseArray, FirebaseUrl, $location, toaster){
//code form
$scope.message = " form version 0.9 - Note: if Policy Agreement is not checked, presenter can't submit paper. ";
var ref = new Firebase(FirebaseUrl);
//create a node name 'calls' and return an array
var allCalls = $firebaseArray(ref.child('calls'));
package com.example.android.justjava;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.widget.TextView;
/**
* This app displays an order form to order coffee.
*/
import { Component } from 'react'
import { createStore, combineReducers } from 'redux'
import parseLinkHeader from 'parse-link-header'
const START = 'start'
const SUCCEED = 'succeed'
const ERROR = 'error'
const inflight = (state={}, action) => (
((state) => (
@sdbeng
sdbeng / MySQL_macOS_Sierra.md
Created May 5, 2018 16:36 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@sdbeng
sdbeng / PY0101EN-1-1-Types.ipynb
Created August 30, 2019 13:38
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sdbeng
sdbeng / PY0101EN-1-2-Strings.ipynb
Created August 31, 2019 15:09
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sdbeng
sdbeng / PY0101EN-2-1-Tuples.ipynb
Created September 1, 2019 16:28
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sdbeng
sdbeng / PY0101EN-2-3-Dictionaries.ipynb
Created September 2, 2019 15:01
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.