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
syntax on | |
set background=dark | |
set laststatus=2 | |
set smartindent | |
set autoindent | |
set modeline | |
set nocompatible | |
" execute pathogen#infect() | |
" Remember somethings |
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
diff --git a/imx/meta-sdk/conf/distro/include/fsl-imx-preferred-env.inc b/imx/meta-sdk/conf/distro/include/fsl-imx-preferred-env.inc | |
index 9f01b95..642ed70 100644 | |
--- a/imx/meta-sdk/conf/distro/include/fsl-imx-preferred-env.inc | |
+++ b/imx/meta-sdk/conf/distro/include/fsl-imx-preferred-env.inc | |
@@ -37,9 +37,9 @@ USE_GPU_VIV_MODULE = "1" | |
PREFERRED_VERSION_linux-libc-headers = "4.1" | |
# preferred versions of recipes-graphics for mx6 | |
-PREFERRED_VERSION_imx-gpu-viv_mx6 = "5.0.11.p8.6-hfp" | |
-PREFERRED_VERSION_xf86-video-imxfb-vivante_mx6 = "5.0.11.p8.6" |
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
# Spring configuration roadmap | |
* Create a Dynamic Web Project. | |
* Convert to maven. | |
* Add maven folder structure. | |
* Create Tomcat server. | |
* Add Tomcat server to project. | |
* Add org.springframework/spring-webmvc, javax.servlet/jstl, javax.servlet/javax.servlet-api dependecies to pom.xml. | |
* Create your package. | |
* Add extension of AbstractAnnotationConfigDispatcherServletInitializer class. This will create root & servlet application contexts. | |
* Implement getRootConfigClasses. |
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
/* | |
Copyright 2017 Daniel Hilst Selli <[email protected] | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
https://sourceforge.net/projects/mdnstools/ | |
https://hobbyistsoftware.com/bonjourbrowser |
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
[geckos@csi24 ~]$ uname -a | |
Linux csi24 4.9.6-1-ARCH #1 SMP PREEMPT Thu Jan 26 09:22:26 CET 2017 x86_64 GNU/Linux | |
[geckos@csi24 ~]$ gcc --version | |
gcc (GCC) 6.3.1 20170109 | |
Copyright (C) 2016 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
[geckos@csi24 build_x11]$ free -m |
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
# Create your views here. | |
urlpatterns = [] | |
def route(regex, kwargs=None, name=None): | |
from django.conf.urls import url | |
def decorator(view): | |
urlpatterns.append(url(regex, view, kwargs, name)) | |
def wrapper(*args, **kwargs): | |
return view(*args, **kwargs) | |
return wrapper |
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
import sys | |
sys.path.append('./flask-restful') | |
from flask import Flask | |
from flask_restful import Api,Resource, reqparse | |
app = Flask(__name__) | |
api = Api(app) | |
class Foo(Resource): | |
def post(self): |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'kevinw/pyflakes-vim' | |
call vundle#end() " required | |
set bg=dark | |
set nohls |
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
from functools import partial, reduce | |
from inspect import signature, Parameter | |
import operator as o | |
def compose(*funcs): | |
def compose2(f, g): | |
return lambda *args, **kwargs: f(g(*args, **kwargs)) | |
return reduce(compose2, funcs) | |
def curry(f): |