Skip to content

Instantly share code, notes, and snippets.

@marocchino
marocchino / 094607.md
Last active July 19, 2022 14:25
ES6시대의 JavaScript

ES6시대의 JavaScript

안녕하세요. 사원사업부의 마루야마@h13i32maru입니다. 최근의 Web 프론트엔드의 변화는 매우 격렬해서, 조금 눈을 땐 사이에 점점 새로운 것이 나오고 있더라구요. 그런 격렬한 변화중 하나가 ES6이라는 차세대 JavaScript의 사양입니다. 이 ES6는 현재 재정중으로 집필시점에서는 Draft Rev31이 공개되어있습니다.

JavaScript는 ECMAScript(ECMA262)라는 사양을 기반으로 구현되어있습니다. 현재 모던한 Web 브라우저는 ECMAScript 5.1th Edition을 기반으로 한 JavaScript실행 엔진을 탑재하고 있습니다. 그리고 다음 버전인 ECMAScript 6th Edition이 현재 재정중으로, 약칭으로 ES6이라는 명칭이 사용되고 있습니다.

@genio
genio / 01_setup_EL.md
Last active November 24, 2022 08:45
ODBC and MSSQL on Linux/Mac

Enterprise Linux installation of ODBC is easy.

yum install unixODBC unixODBC-devel freetds freetds-devel perl-DBD-ODBC perl-local-lib

Configuration isn't much harder. You'll need to edit UnixODBC's driver list to add FreeTDS as an available driver.

  • vim /etc/odbcinst.ini
@jayapal
jayapal / gist:93f783d3550eaf1555ab
Created March 22, 2015 16:53
Django listview as JSON and Jquery getJSON example
class JsonResponseMixin(object):
"""
Return json
"""
def render_to_response(self, context):
queryset = self.model.objects.all()
data = serializers.serialize('json', queryset)
return HttpResponse(data, content_type='application/json')
JSON parsing using getJSON
@mrjoes
mrjoes / base.py
Created March 27, 2015 00:05
CSV export for Flask-Admin
class BaseModelView(ModelView):
list_template = 'admin/model_list.html'
export_columns = None
# Exporting
def _get_data_for_export(self):
view_args = self._get_list_extra_args()
# Map column index to column name
@tushar-borole
tushar-borole / traverse.js
Last active July 30, 2024 00:40 — forked from steinfletcher/traverse.js
Object tree traversal in javascript (with lodash)
var data = {
"name": "root",
"contents": [
{
"name": "A",
"contents": [
{
"name": "fileA1",
"contents": []
}
@raspberry9
raspberry9 / freeTDSSettings.txt
Created October 24, 2015 08:00
MSSQL + unixODBC + freeTDS 설정하기
1. MSSQL 서버 설치 - 알아서
2. MSSQL 서버 외부 접속 설정
- Sql Server Configuration Manager > SQL Server 네트워크 구성 > [...]에 대한 프로토콜 > 명명된 파이프(사용), TCP/IP(사용)
TCP/IP우클릭>속성>IPAll에 포트 넣기(1433)
- 고급 보안이 포함된 Windows 방화벽>인바운드 규칙>1433 TCP 포트 개방
3. unixODBC, freeTDS 설치
- yum install freeTDS(unixODBC도 알아서 설치됨)
- /etc/freetds.conf
-----------------------------------------------
[global]
@preco21
preco21 / babel-6.md
Last active March 16, 2023 01:55
Babel 6.x 간단 가이드

Babel 6.x 가이드

Babel은 최신 ES(2015/NEXT) 표준에 맞춰 작성된 코드를 아직 표준 기능을 구현하지 않은 브라우저와 플랫폼에서도 코드가 작동할 수 있도록 만들어주는 코드 transpilerpolyfill 도구의 집합입니다.

Babel 6.x 버전부턴 많은 기능이 추가되었고 운용 방식이 설정(config) 기반 방식으로 바뀌었습니다.

설치와 사용

@justinbellamy
justinbellamy / cltools.sh
Last active March 6, 2022 03:46 — forked from jellybeansoup/cltools.sh
Install Autoconf and Automake on OS X El Capitan
#!/bin/sh
##
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
#
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html
#
export build=~/devtools # or wherever you'd like to build
@henriquebastos
henriquebastos / secret_gen.py
Created December 23, 2015 13:50
SECRET_KEY generator.
#!/usr/bin/env python
"""
Django SECRET_KEY generator.
"""
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
print(get_random_string(50, chars))
@MichaelCurrie
MichaelCurrie / autopep8 Travis-CI.md
Last active April 26, 2021 17:18
Automatically fix PEP-8 issues using Travis-CI

PEP-8 is a set of Python style recommendations. pep8 is a module that checks your .py file for violations. To make your Travis-CI build fail if you have any violations, you could add these lines to your .travis.yml:

before_install:
    - pip install pep8
    
script:
    # Run pep8 on all .py files in all subfolders
    # (I ignore "E402: module level import not at top of file"
    # because of use case sys.path.append('..'); import <module>)