Skip to content

Instantly share code, notes, and snippets.

neok-m4700

Block or report user

Report or block neok-m4700

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@neok-m4700
neok-m4700 / OOP_F2003_Part_1.md
Created Feb 2, 2018 — forked from n-s-k/OOP_F2003_Part_1.md
Object-Oriented Programming in Fortran 2003 Part 1: Code Reusability
View OOP_F2003_Part_1.md
@neok-m4700
neok-m4700 / OOP_F2003_Part_2.md
Created Feb 2, 2018 — forked from n-s-k/OOP_F2003_Part_2.md
Object-Oriented Programming in Fortran 2003 Part 2: Data Polymorphism
View OOP_F2003_Part_2.md

Object-Oriented Programming in Fortran 2003 Part 2: Data Polymorphism

Original article by Mark Leair, PGI Compiler Engineer

Note: This article was revised in March 2015 and again in January 2016 to bring it up-to-date with the production software release and to correct errors in the examples.

This is Part 2 of a series of articles:

@neok-m4700
neok-m4700 / X264Encoder.cpp
Created Nov 17, 2017 — forked from roxlu/X264Encoder.cpp
X264 encoder example
View X264Encoder.cpp
#include <roxlu/core/Log.h>
#include <roxlu/core/Utils.h>
#include <video/X264Encoder.h>
X264Encoder::X264Encoder()
:in_width(0)
,in_height(0)
,in_pixel_format(AV_PIX_FMT_NONE)
,out_width(0)
,out_height(0)
@neok-m4700
neok-m4700 / pca_animation.m
Created Oct 29, 2017 — forked from anonymous/pca_animation.m
Matlab code to produce PCA animations
View pca_animation.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Matlab code to produce PCA animations shown here:
% http://stats.stackexchange.com/questions/2691
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Static image
clear all
rng(42)
@neok-m4700
neok-m4700 / static_server.py
Created Aug 20, 2017
simple http server from providing lcoal files
View static_server.py
#!/usr/bin/env python3.6
'''
Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
'''
@neok-m4700
neok-m4700 / static_server.js
Created May 25, 2017 — forked from ryanflorence/static_server.js
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
View static_server.js
// stackoverflow.com/a/13635318
// gist.github.com/ryanflorence/701407
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
@neok-m4700
neok-m4700 / cs.h
Created Mar 3, 2017 — forked from rmcgibbo/LICENSE
Parallel Sparse Matrix Dense Matrix Product in C/Cython/Python.
View cs.h
#ifndef _CS_H
#define _CS_H
#include <stdlib.h>
// #include <stdint.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stddef.h>
#ifdef MATLAB_MEX_FILE
#include "mex.h"
@neok-m4700
neok-m4700 / kmeans.pyx
Last active Feb 22, 2017 — forked from dwf/kmeans.pyx
Parallelized k-means in Cython.
View kmeans.pyx
"""
Parallelized k-means module.
By David Warde-Farley, February 2012. Licensed under the 3-clause BSD.
FROM gist.github.com/dwf/2200359
"""
cimport cython
from cython.parallel import prange
import numpy as np
cimport numpy as np
@neok-m4700
neok-m4700 / emacs-fortran-formating-script.lisp
Created Aug 8, 2016
Emacs fortran formatting script, according to emacs/lisp/progmodes/f90.el
View emacs-fortran-formating-script.lisp
(defun f90-batch-indent-region ()
"Run `f90-batch-beatify-region' on the specified filename.
Use this from the command line, with `-batch';
it won't work in an interactive Emacs.
For example, invoke \"emacs -batch -l ~/.emacs-batch-f90-indent -f f90-batch-indent-region file.f\""
(if (not noninteractive)
(error "`f90-batch-indent-region' is to be used only with -batch"))
(let ((make-backup-files nil)
(version-control nil)
(auto-save-default nil)
@neok-m4700
neok-m4700 / emacs-fortran-formating-script.lisp
Created Aug 8, 2016
Emacs fortran formatting script, according to emacs/lisp/progmodes/f90.el
View emacs-fortran-formating-script.lisp
(defun f90-batch-indent-region ()
"Run `f90-batch-beatify-region' on the specified filename.
Use this from the command line, with `-batch';
it won't work in an interactive Emacs.
For example, invoke \"emacs -batch -l ~/.emacs-batch-f90-indent -f f90-batch-indent-region file.f\""
(if (not noninteractive)
(error "`f90-batch-indent-region' is to be used only with -batch"))
(let ((make-backup-files nil)
(version-control nil)
(auto-save-default nil)
You can’t perform that action at this time.