This file contains 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
<div id="google_search_box_15151244"> | |
<div> | |
<label for="searchText15151244"> | |
<img src="//s3.amazonaws.com/libapps/apps/libguides/images/google_scholar.png" alt="Google Scholar Search" style="width:125px;"> | |
</label> | |
</div> | |
<form id="form_google_15151244" target="_blank" action="http://scholar.google.com/scholar" class="form-horizontal"> | |
<input name="q" id="searchText15151244" class="form-control s-lg-google-search-field" type="text" value=""> | |
<input id="btn_patent_search15151244" class="btn btn-default btn-sm" type="submit" value="Search"> | |
</form> |
This file contains 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
## | |
# STATUS BAR CUSTOMIZATION | |
## | |
set -g status-utf8 on | |
set -g status-keys vi | |
set -g status-interval 1 | |
set -g status-attr bright | |
set -g status-fg white | |
set -g status-bg black | |
set -g status-left-length 20 |
This file contains 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
int main(void) { | |
int i,size; | |
int cumulative_mem=0; | |
int iter=0; | |
int *base; | |
clock_t start,end; |
This file contains 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
#include <stdio.h> | |
#include <time.h> | |
void main() { | |
while (1) { | |
clock_t start, end; | |
double runTime; | |
start = clock(); | |
int i, num = 1, primes = 0; |
This file contains 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
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
int main () { | |
while (1) {fork (); } | |
return EXIT_FAILURE; | |
} |
This file contains 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
C | |
C This file is part of MUMPS 4.10.0, built on Tue May 10 12:56:32 UTC 2011 | |
C | |
PROGRAM MUMPS_TEST | |
IMPLICIT NONE | |
INCLUDE 'mpif.h' | |
INCLUDE 'dmumps_struc.h' | |
TYPE (DMUMPS_STRUC) mumps_par | |
INTEGER IERR, I | |
CALL MPI_INIT(IERR) |
This file contains 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
call pathogen#infect() | |
set noswapfile | |
syntax on | |
syntax enable | |
set background=dark | |
colorscheme solarized | |
" --------------------------------- | |
" Added because the internet told me to: |
This file contains 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
n = 2 // hur långt det är mellan repetitionerna, n värdet | |
nbackArr = []; // slutlliga arrayn som vi vill ha | |
sampleArr = []; // Arrayn som vi "väljer från" | |
noElements = 24; // Denna borde sättas som längden på sampleArray men efter som vi inte har den | |
// så lägger vi den som 24, cause...24 e fint. | |
// Generera sample array, om du har den innan, t.ex. bilderna, så behöver du inte göra den | |
for (i=0;i<noElements;i++) { |
This file contains 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
#include <omp.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <time.h> | |
/* Private; Implements the sieve of Erathostenes algorithm |
This file contains 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
function [X_norm, mu, sigma] = featureNormalize(X) | |
%FEATURENORMALIZE Normalizes the features in X | |
% FEATURENORMALIZE(X) returns a normalized version of X where | |
% the mean value of each feature is 0 and the standard deviation | |
% is 1. This is often a good preprocessing step to do when | |
% working with learning algorithms. | |
mu = mean(X); | |
X_norm = bsxfun(@minus, X, mu); |
NewerOlder