Skip to content

Instantly share code, notes, and snippets.

View izzuddin91's full-sized avatar
🎯
Focusing

izzuddin cheras izzuddin91

🎯
Focusing
View GitHub Profile
//this is an snippet from previous code on UIALert (show up modal)
@IBAction func setExpenditure(_ sender: Any) {
let alert = UIAlertController(title: "Description", message: "Edit or cancel", preferredStyle: .alert)
alert.addTextField { (textfield: UITextField) in
}
@izzuddin91
izzuddin91 / tensorflow
Created January 7, 2018 16:29
low level training and classification
import tensorflow as tf
# node1 = tf.constant(3.0, tf.float32)
# node2 = tf.constant(4.0)
# sess = tf.Session()
# print(sess.run([node2, node1]))
@izzuddin91
izzuddin91 / 11_rules.py
Last active December 18, 2017 04:13
for calculator windshield claim
from xml.dom import minidom
from datetime import datetime
import csv
import xml.dom.minidom
workshops = minidom.parse('list_of_workshops.xml')
policy_holder_rules = minidom.parse('policy_holder_rules.xml')
cars_model_exclude_honda = minidom.parse('carlist_exclude_honda.xml')
honda_cars = minidom.parse('carlist_model_honda.xml')
@izzuddin91
izzuddin91 / Login.java
Created November 30, 2017 10:02
example of passing data using Model
package com.spring.model;
public class Login {
private String username;
private int passcode;
public String getUsername() {
return username;
}
public void setUsername(String username) {
@izzuddin91
izzuddin91 / index.jsp
Created November 30, 2017 09:36
example of passing data without Model (spring)
<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
<meta charset="utf-8">
@izzuddin91
izzuddin91 / swift_soap_api.swift
Created November 6, 2017 02:12
swift xcode xml parser soap ui
//
// TestViewController.swift
// etiqa-autoclaim
//
// Created by izzuddin on 25/10/2017.
// Copyright © 2017 etiqa. All rights reserved.
//
import UIKit
import Foundation
@izzuddin91
izzuddin91 / BNRHelp.h
Created October 4, 2017 07:24
one-to-one relationship
#import <Foundation/Foundation.h>
#import "BNRTest.h"
@interface BNRHelp : NSObject
{
NSString *_helpName;
}
@property (nonatomic) NSString *luar;
@izzuddin91
izzuddin91 / full_arduino_relay_rtc.c
Created September 29, 2017 03:33
full complete for arduino and relay
// ADDED ON 24 JULY 2017
//connection:
//GND to GND
//VCC TO V in
//SDA to A4
//SCL to A5
// Written by John Boxall from http://tronixstuff.com
@property (strong, nonatomic) UIWindow *window;
@property (nonatomic) UITableView *taskTable;
@property (nonatomic) UITextField *taskField;
@property (nonatomic) UIButton *insertButton;
@property (nonatomic) NSMutableArray *tasks;
-(void)addTask:( id )sender;
//create and configure the UI windows view instances
CGRect winFrame = [[UIScreen mainScreen] bounds];
UIWindow *theWindow = [[UIWindow alloc] initWithFrame:winFrame];
self.window = theWindow;
CGRect tableframe = CGRectMake(0, 80, winFrame.size.width, winFrame.size.height - 100);