Programming/css2018. 9. 5. 18:43

Syntactically Awesome StyleSheets

Sassy CSS


문법적으로 끝내주는 스타일시트, 믓진 CSS


이름은 죽이는군 ㅋㅋ

CSS의 한계를 벗어나기 위해 약간은 컴파일 하는 듯한 느낌의 무언가?


[링크 : https://sass-lang.com/]

[링크 : https://velopert.com/1712]

[링크 : https://github.com/sass/node-sass]

'Programming > css' 카테고리의 다른 글

css로 백그라운드만 돌리기  (0) 2018.10.10
css 계층 구조? 상속? 선택자 조합자?  (0) 2018.09.05
hover inline css  (0) 2018.08.27
css selector  (0) 2018.08.21
css BEM( Block Element Modifier)  (0) 2018.08.21
Posted by 구차니

svn export 하면 다른 디렉토리로 사본을 복사해주었는데

git에도 있을 것 같아서 찾아보니 git archive로 존재


[링크 : https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export]



git archive --format zip --output /full/path/to/zipfile.zip master  

[링크 : https://gist.github.com/kristofferh/1442717]

[링크 : https://git-scm.com/docs/git-archive]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git 상태 다시 읽기  (0) 2018.09.20
git 원격지 주소 변경하기  (0) 2018.09.06
git rm 복구하기  (0) 2018.08.22
git branch  (0) 2018.08.22
git add / reset / checkout  (0) 2018.08.22
Posted by 구차니
Programming/node.js2018. 9. 5. 12:50

node.js 다루는데 템플릿으로 받은게 pug로 된거라 문법 찾는중

기본적으로(?) 클래스만 선언하면 무조건 div로 생성되니 조금은 고민하고 써야 할 듯


[링크 : http://jeong-pro.tistory.com/65]

[링크 : https://pugjs.org/]

'Programming > node.js' 카테고리의 다른 글

node.js express template  (0) 2018.09.06
node.js exec()  (0) 2018.09.06
npm package.json  (0) 2018.09.05
nodaemon  (0) 2018.09.04
node.js + AJAX 테스트  (0) 2018.09.04
Posted by 구차니
Programming/node.js2018. 9. 5. 11:26

npm install [package name]으로는 개별설치는 하는 반면

package.json 이라는 파일이 있으면

npm install 으로 의존성을 한번에 설치한다.

[링크 : https://blog.outsider.ne.kr/665]


npm init 으로 package.json을 생성할 수 있다.

[링크 : https://blog.outsider.ne.kr/674]


'Programming > node.js' 카테고리의 다른 글

node.js exec()  (0) 2018.09.06
node.js / express/ pug(jade) 문법  (0) 2018.09.05
nodaemon  (0) 2018.09.04
node.js + AJAX 테스트  (0) 2018.09.04
node.js CORS  (0) 2018.09.04
Posted by 구차니

샤오미 에어 MAX 이런게 새로 나오긴 했는데

이래저래 고민하다가 미세먼지가 날아올 때가 다가오니 일단 급한대로(?)

구관이 명관이라고 지르고 고민(응?)




'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

오늘의 기부(?)  (0) 2018.09.14
육아휴직 서글프네  (4) 2018.09.10
아내님 컴백  (0) 2018.09.01
처갓댁 옴  (0) 2018.08.25
남양주 토이플러스 방문  (2) 2018.08.03
Posted by 구차니

어느 세월에 또 복사하냐 ㅠㅠ
하드 나가고 몇번 복사하고 하다보니, 4베이 NAS가 절실하게 느껴진다.

이래서 가상화 하는건가.. (뜬금포)

Posted by 구차니
Programming/node.js2018. 9. 4. 19:34

angular 처럼 서버 소스 수정하면 재시작 하는 서비스


[링크 : https://nodemon.io/]

[링크 : https://github.com/remy/nodemon]



+

2018.09.05


실행방법이 먼가 까다로워 보여서 고민하다가 찾아 보니

조금 길지만 직관적인(?) 방법이 존재해서 일단 실행


This will be simple command for this

nodemon --exec npm start 

[링크 : https://stackoverflow.com/questions/33879896/how-to-execute-start-script-with-nodemon]

[링크 : https://www.npmjs.com/package/nodemon]


그나저나 다시 보니

no demon 이라기 보다는 node mon(itor)였네?

아이콘에 악마가 있어서 푸흡 했는데 ㄷㄷ


아무튼 js 파일들을 수정하니 자동으로 이런 메시지가 뜨면서 서버를 재기동 시킨다.

(node.js 소스는 건드리지 않고 모니터 통해서 실행시키면 되니 개꿀)


'Programming > node.js' 카테고리의 다른 글

node.js / express/ pug(jade) 문법  (0) 2018.09.05
npm package.json  (0) 2018.09.05
node.js + AJAX 테스트  (0) 2018.09.04
node.js CORS  (0) 2018.09.04
node.js와 웹소켓  (0) 2018.09.03
Posted by 구차니

몇가지 검색을 해봤는데.. 아무래도 이런 branch에 소유자가 아니면 push 할 수 없는 제한은

git 본연의 기능이 아닌 github나 gitlab의 확장된 기능인것으로 보인다.


[링크 : https://docs.gitlab.com/ee/user/project/protected_branches.html]

[링크 : https://help.github.com/articles/about-protected-branches/]


[링크 : https://git-scm.com/docs/git-push/2.3.5]


별다른 댓글은 없지만 pre-push hookup 스크립트를 이용해 구현한걸 보면

이런식으로 github/gitlab에서 적용해 놓은 걸수도?

[링크 : https://blog.ghost.org/prevent-master-push/]


+

2019.04.23

프로젝트 관리 메뉴에서 "Protected Branches"


하단의 Unprotect를 해주면 팀원이 Master가 아닌 Developer라도 push, merge가 가능해진다.


'프로그램 사용 > gitlab' 카테고리의 다른 글

gitlab 백업하기  (0) 2019.03.23
gitlab wiki  (2) 2019.01.28
gitlab  (2) 2018.08.13
Posted by 구차니

그래도.. html 요소니까 </body> 이후에 넣긴 그런거 같아서 고민하다가 검색


결론은.. body 전에 넣자 인가?


[링크 : http://jundol.kr/8]

[링크 : http://webdir.tistory.com/514]


일단 여기는 순수 작동하는 자바스크립트가 아니라 외부 스크립트 인것 같은데..

async나 defer를 쓰라고..

<script type="text/javascript" src="path/to/script1.js" async></script>

<script type="text/javascript" src="path/to/script2.js" async></script>


<script type="text/javascript" src="path/to/script1.js" defer></script>

<script type="text/javascript" src="path/to/script2.js" defer></script> 

[링크 : http://dailydev.tistory.com/15]

'Programming > javascript & HTML' 카테고리의 다른 글

JSMpeg timestamp  (0) 2018.09.11
html5 video timestamp  (0) 2018.09.11
jquey ajax 테스트  (4) 2018.09.03
jquery 복수 속성 선택하기  (0) 2018.08.30
jqeury 예제 그리고 자바스크립트 익명함수  (0) 2017.06.10
Posted by 구차니
파일방2018. 9. 4. 17:14

조만간 자바스크립트 만세 부를듯.. -0-


그래프 그려주는 자바스크립트 모음인데

chartjs는 2d 느낌인데 원하는건 pie 차트였으나.. 하나밖에 예시가 안보이고..

fusioncharts는 3d 느낌이라 좋아 보이는데 자세히 본게 아니라 어떨지 모르겠네?



[링크 : https://www.chartjs.org/]

[링크 : https://www.fusioncharts.com/]



+

script 넣는 위치로 고민하다가 해결(?) 다음글로 확인 ㅋㅋ

아무튼 type을 변경하면 원하는 그래프가 나오는데...

canvas 요즘 지원안하는 브라우저 없겠지? ㄷㄷㄷ


클라이언트 : IE6 지원하죠?

개발자 : 으아아아아아아

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<style>

</style>

<script src="/js/Chart.min.js"></script>

</head>

<body>

<div id="test" style="width:400px;">

<canvas id="myChart"></canvas>

</div>

<script>

var ctx = document.getElementById('myChart').getContext('2d');

var chart = new Chart(ctx, {

// The type of chart we want to create

type: 'line',


// The data for our dataset

data: {

labels: ["January", "February", "March", "April", "May", "June", "July"],

datasets: [{

label: "My First dataset",

backgroundColor: 'rgb(255, 99, 132)',

borderColor: 'rgb(255, 99, 132)',

data: [0, 10, 5, 2, 20, 30, 45],

}]

},


// Configuration options go here

options: {}

});

</script>

</body>

</html> 


'파일방' 카테고리의 다른 글

cairo  (0) 2018.12.20
swagger.io  (0) 2018.09.07
웹에서 회면 캡쳐하기  (2) 2018.09.03
무료 오프라인 지도  (4) 2018.08.31
mobaXterm  (2) 2018.08.14
Posted by 구차니