Skip to content

Instantly share code, notes, and snippets.

View fredriccliver's full-sized avatar
🧭
To the north

Fredric Cliver fredriccliver

🧭
To the north
View GitHub Profile
@fredriccliver
fredriccliver / ViewController.swift
Created October 21, 2018 16:32
xcode-face-detection
//
// ViewController.swift
// face-detection
//
// Created by on 22/10/2018.
// Copyright © 2018 . All rights reserved.
//
import UIKit
import Vision
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
import sys
import tensorflow as tf
import keras
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers.convolutional import Conv2D, MaxPooling2D
import numpy as np
@fredriccliver
fredriccliver / 1_basic_nn.py
Created October 25, 2018 06:00
initial weight 테스트
## korean article : http://ddanggle.github.io/11lines
## original article : http://iamtrask.github.io/2015/07/12/basic-python-network/
## Title : "A Neural Network in 11 lines of Python (Part 1)"
# 변수, 변수에 관한 설명
# X 각각의 행들이 트레이닝 샘플인 입력 데이터 행
# y 각각의 행들이 트레이닝 샘플인 결과 데이터 행
# l0 네트워크의 첫 번째 층. 입력 데이터값들을 특징화한다. (l 은 layer 의 l, syn은 synapse 의 syn)
# l1 네트워크의 두 번째 층. 보통 히든 레이어으로 알려져 있다.
# weight_vector weight들의 첫번째 레이어인 시냅스 0로 l0과 l1를 연결시킨다.
@fredriccliver
fredriccliver / gradient_descent.py
Last active January 3, 2019 03:10
Easiest understanding about Gradient descent
#%% making dummy data ----------------------------------------
from random import *
import math
import matplotlib.pyplot as plt
import numpy as np
def get_biased_point_randomly():
x = randint(1, 100)
@fredriccliver
fredriccliver / gradient_descent.ipynb
Created January 3, 2019 03:10
Easiest understanding about Gradient descent
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fredriccliver
fredriccliver / gradient_descent.ipynb
Created January 3, 2019 03:10
Easiest understanding about Gradient descent
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fredriccliver
fredriccliver / ViewController.swift
Created January 29, 2019 05:18
simplest animation
//
// ViewController.swift
// animation
//
// Created by Fredric Cliver on 29/01/2019.
// Copyright © 2019 Fredric Cliver. All rights reserved.
//
import Foundation
import UIKit
@fredriccliver
fredriccliver / main.dart
Created September 30, 2019 05:39
getting Dom Element from flutter webview
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:html/parser.dart';
import 'package:webview_flutter/webview_flutter.dart';
import 'package:provider/provider.dart';
import 'package:html/dom_parsing.dart';
@fredriccliver
fredriccliver / main.dart
Last active April 22, 2023 19:28
getting Dom Element from flutter webview
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:html/parser.dart';
import 'package:webview_flutter/webview_flutter.dart';
import 'package:provider/provider.dart';
import 'package:html/dom_parsing.dart';
@fredriccliver
fredriccliver / main.dart
Created September 30, 2019 08:47
FlutterDev) Integrate TextField and Webview with Provider
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:html/parser.dart';
import 'package:webview_flutter/webview_flutter.dart';
import 'package:provider/provider.dart';
void main() => runApp(MyApp());
class UrlManager extends ChangeNotifier {