This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Summernote Image Resize 1:1 Ratio Plugin | |
* | |
* copyright 2018 [blood72] | |
* email: [email protected] | |
* license: MIT License. | |
*/ | |
(function (factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['jquery'], factory); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# author: blood72 | |
# script for QuickBMS http://quickbms.aluigi.org | |
endian big | |
savepos OFFSET 0 | |
Do | |
goto OFFSET | |
# get file name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h>// pow함수 | |
#pragma warning (disable:4996)// 에러무시 | |
void blankdel(char *poly); | |
double polycalc(char *poly, int x); | |
int main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h>//시간함수 사용. | |
#include <math.h>//pow(제곱)함수 사용. | |
#pragma warning(disable:4996) | |
// 답을 계산합니다. (크면 1, 작으면 -1, 정답이면 0 리턴) | |
int check_correct(int answer, int value, int count) | |
{ | |
if (answer < value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#pragma warning(disable:4996) | |
int main() { | |
int allocated_table[5][5]; //할당 행렬A | |
int claim_table[5][5]; //요구 행렬C | |
int avaliable_vector[5]; //가용 벡터V | |
int allocated_vector[5] = { 0, 0, 0, 0, 0 }; //할당 벡터C-A | |
int resource_vector[5]; //자원 벡터R | |
int isRun[5]; //현재 프로세스 실행상태 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#pragma warning(disable:4996) //scanf 에러문 무시 | |
// #define BUF_SIZE 100 // char 형태 데이터 | |
// #define NAME_SIZE 20 // char 형태 데이터 | |
typedef struct Node{ | |
int data; // int 형태 데이터 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <malloc.h> | |
#pragma warning(disable:4996) | |
// 선택 정렬 | |
void SelectionSort(int list[], int n) | |
{ | |
int i, j, least, temp; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <malloc.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#pragma warning(disable:4996) | |
// 노드 정의 선언 | |
typedef struct | |
{ | |
int item; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct TreeNode | |
{ | |
int data; | |
struct TreeNode *llink, *rlink; | |
} TreeNode; | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Route; | |
if (! Route::hasMacro('directory')) { | |
Route::macro('directory', function ($path, $attributes = [], $recursive = false) { | |
$route = $this; // for IDE | |
/** @var Route $route */ | |
return $route->group((array) $attributes, function () use ($path, $recursive) { | |
foreach (File::{$recursive ? 'allFiles' : 'files'}($path) as $file) { |
OlderNewer