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 booking.models import User, Remark, ResourceType, Resource, Reservation | |
from django.contrib import admin | |
# Used instead of admin.ModelAdmin for translated models. | |
from hvad.admin import TranslatableAdmin | |
class ResourceTypeAdmin(TranslatableAdmin): | |
fields = ['image', 'type_name'] | |
admin.site.register(User) |
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
GistID: 4515800 | |
Replacement for seemingly shitty autoclose | |
https://github.com/Raimondi/delimitMate | |
Replacement for ultrapooty Snipmate | |
https://github.com/guns/ultisnips | |
Replacement for pooty SuperTab (this is some seriously cool shit! also still maintained) | |
https://github.com/Shougo/neocomplcache |
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
" Save, quit, etc | |
nnoremap <silent> <leader>s :w<cr> | |
nnoremap <silent> <leader>w :wa<cr> | |
nnoremap <silent> <leader>x :wq<cr> | |
nnoremap <silent> <leader>d :q<cr> | |
nnoremap <silent> <leader>c :qa<cr> | |
" Disable Ex mode | |
map Q <Nop> |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
# GistID: 4676361 | |
import re | |
from operator import itemgetter | |
def get_tracks_by_popularity(no_tracks, track_provider, no_matches): | |
''' | |
Retrieves the most popular tracks. |
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
-- GistID: 5038439 | |
data Term | |
= TmTrue | |
| TmFalse | |
| TmZero | |
| TmIf Term Term Term | |
| TmSucc Term | |
| TmPred Term | |
| TmIsZero Term | |
| PreviousWasNormalForm |
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
Parallel | |
08 Fö 3 | |
09 Fö 4 | |
Fö 5 | |
10 Fö 6 | |
12 LE 1 | |
15 LA 1 AC | |
16 FÖ 7 | |
LA 1 B |
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
var customShader = new THREE.ShaderMaterial({ | |
vertexShader: [ | |
'void main() {', | |
' gl_Position = projectionMatrix *', | |
' modelViewMatrix *', | |
' vec4(position,1.0);', | |
'}' | |
].join('\n'), | |
fragmentShader: [ | |
'void main() {', |
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
proxy:0:0@n155] HYDT_dmxu_poll_wait_for_event (./tools/demux/demux_poll.c:70): assert (!(pol lfds[i].revents & ~POLLIN & ~POLLOUT & ~POLLHUP)) failed | |
[proxy:0:0@n155] main (./pm/pmiserv/pmip.c:387): demux engine error waiting for event | |
srun: error: n155: task 0: Exited with exit code 7 | |
[mpiexec@n155] HYDT_bscu_wait_for_completion (./tools/bootstrap/utils/bscu_wait.c:101): one o f the processes terminated badly; aborting | |
[mpiexec@n155] HYDT_bsci_wait_for_completion (./tools/bootstrap/src/bsci_wait.c:18): bootstra p device returned error waiting for completion | |
[mpiexec@n155] HYD_pmci_wait_for_completion (./pm/pmiserv/pmiserv_pmci.c:521): bootstrap serv er returned error waiting for completion | |
[mpiexec@n155] main (./ui/mpich/mpiexec.c:548): process manager error wai |
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
/* | |
File: blurfilter_pthread.c | |
Implementation of blurfilter function using pthreads. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include "blurfilter.h" |
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
program laplsolv | |
!----------------------------------------------------------------------- | |
! Serial program for solving the heat conduction problem | |
! on a square using the Jacobi method. | |
! Written by Fredrik Berntsson ([email protected]) March 2003 | |
! Modified by Berkant Savas ([email protected]) April 2006 | |
!----------------------------------------------------------------------- | |
integer, parameter :: n=1000, maxiter=1000 | |
double precision,parameter :: tol=1.0E-3 | |
double precision,dimension(0:n+1,0:n+1) :: T |