데비안 계열 중 우분투 서버
여기서 접근하는 모든 디렉토리는 권한이 있어야함.
싱글톤 패턴이란 단 하나의 객체로 존재해야하는 객체를 구현해야 할 때 많이 사용된다.
주로 객체의 부적절한 의존관계를 지우기 위해 많이 사용되지만 객체지향 개념을 잘 모르고 사용할 경우 오히려 더 안좋은 코드가 될 가능성이 높다.
소스는 다음과 같다. (C++로 작성됨)
#include <stdio.h>
class MyClass
{
public:
댕글링 포인터란 이미 해제된 메모리를 가리키고 있는 포인터를 뜻한다.
#include <stdio.h>
int main() {
int *p = (int*)malloc(sizeof(int));
free(p); // p는 댕글링 포인터
p = 1; // 이미 해제했기 때문에 에러가 발생
}
This file contains 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
/** | |
* Definition for singly-linked list. | |
* struct ListNode { | |
* int val; | |
* ListNode *next; | |
* ListNode(int x) : val(x), next(NULL) {} | |
* }; | |
*/ | |
#include <map> |
This file contains 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
'use strict'; | |
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
rename = require('gulp-rename'), | |
glob = require('glob'), | |
sass = require('gulp-sass'), | |
cleanCSS = require('gulp-clean-css'), | |
babelify = require('babelify'), | |
browserify = require('browserify'), |
This file contains 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
import UIKit | |
import RxSwift | |
import RxAlamofire | |
import ObjectMapper | |
class Post: Mappable { | |
var id: Int = 0 | |
var title: String = "" | |
required init?(_ map: Map) { |
This file contains 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
import gulp from 'gulp'; | |
import sass from 'gulp-sass'; | |
import autoprefixer from 'gulp-autoprefixer'; | |
import sourcemaps from 'gulp-sourcemaps'; | |
import uglify from 'gulp-uglify'; | |
import rename from 'gulp-rename'; | |
import cleanCSS from 'gulp-clean-css'; | |
import browserify from 'browserify'; | |
import babelify from 'babelify'; | |
import source from 'vinyl-source-stream'; |
- https://github.com/kciter/awesome-style-guide // 스타일 가이드
- https://github.com/getify/You-Dont-Know-JS // 자바스크립트 팁
- https://github.com/you-dont-need/You-Dont-Need-Javascript // CSS만으로 프론트엔드 작성
- https://github.com/una/YouMightNotNeedJS // CSS만으로 프론트엔드 작성
- https://github.com/sorrycc/awesome-javascript // 자바스크립트 관련 라이브러리, 문서
- https://github.com/enaqx/awesome-react // 리엑트 관련 라이브러리, 문서
- https://github.com/brillout/awesome-react-components // 리엑트 컴포넌트 라이브러리
- https://github.com/loverajoel/jstips // 자바스크립트 팁
- https://github.com/nhnent/fe.javascript // 자바스크립트 팁
OlderNewer