Skip to content

Instantly share code, notes, and snippets.

View SangRyul's full-sized avatar

Sangryul Kim SangRyul

View GitHub Profile
@SangRyul
SangRyul / index.html
Created June 26, 2018 06:30
vue 전역 컴포넌트 등록
<html>
<head>
<title>Vue Component Registration </title>
</head>
<body>
<div id = "app">
<button> 컴포넌트 등록 </button>
<my-component></my-component>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.2/dist/vue.js"></script>
/*program 1 함수 포인터*/
//#pragma warning(disable:4996)
//#include<stdio.h>
//
//void simple_adder(int n1, int n2);
//void show_string(char *str);
//
//int main(void) {
//
// char *str = "함수 포인터 예시";
/*Program 1*/
//#pragma warning(disable:4996)
//#include<stdio.h>
//
//int main(void) {
//
// int arr[2][2] = { 10,20,30,40 };
//
// for (int i = 0; i < 2; i++) {
// for (int j = 0; j < 2; j++) {
//program 1 주소확인
//#pragma warning(disable:4996)
//#include<stdio.h>
//
//int main(void) {
//
// int a = 2;
// float b = 3.0;
// char c = 'A';
@SangRyul
SangRyul / gist:668618a5d01d4e4b6a08c12da373d9cd
Created April 15, 2018 03:00
2018새싹교실 1반 -3차시
//program 1
//#pragma warning(disable:4996)
//#include<stdio.h>
//
//
//int sum(int n);
//
//int main(void) {
//
// 각 프로그램마다 주석 풀어서 사용하세요
// made by sangryul
//#pragma warning(disable:4996)
//#include<stdio.h>
//program1
//int main(void) {
// int i = 2, j = 3;
import android.app.Activity;
import android.app.ActivityManager;
import android.support.v7.app.AppCompatActivity;
import java.io.IOException;
import java.io.RandomAccessFile;
/**
* Created by ksl97 on 2017-10-21.
@SangRyul
SangRyul / genetic.py
Created September 14, 2017 07:56 — forked from bellbind/genetic.py
[python]Genetic Algorithm example
"""Genetic Algorithmn Implementation
see:
http://www.obitko.com/tutorials/genetic-algorithms/ga-basic-description.php
"""
import random
class GeneticAlgorithm(object):
def __init__(self, genetics):
self.genetics = genetics
pass
@SangRyul
SangRyul / 1번 과제 - 구구단
Last active May 23, 2016 15:30
김승태 교수님 과제 3번째
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<Windows.h>
#include<stdlib.h>
#include<time.h>
int main(void) {
int i, x, y, ans, input, i_time,f_time;
double score = 0;
#include <iostream>
#include <fstream>
#include <string>
#include <locale>
#include <cstdio>
#pragma warning(disable:4996)
using namespace std;