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 <mpi.h> | |
int main(int argc, char *argv[]) | |
{ | |
int rank, size; | |
MPI_Init(&argc, &argv); |
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 "mpi.h" | |
int main(int argc, char **argv) | |
{ | |
int me, nprocs, namelen; | |
char processor_name[MPI_MAX_PROCESSOR_NAME]; | |
MPI_Init(&argc, &argv); | |
MPI_Comm_size(MPI_COMM_WORLD, &nprocs); |
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> | |
/** | |
* stucture to hold the details about the spaces | |
*/ | |
typedef struct node{ | |
int size; // Original requested size | |
char isFree; // 1 if free or 0 if in use | |
struct node *next; // pointer to to next memory chunk | |
} node; |
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
Brackets Additional Right Click Menu | |
Brackets Devicons | |
Brackets File Format | |
Brackets SASS | |
Brackets SASS Code Hints | |
Color Highlighter | |
Duplicate Files & Folders | |
Pop-up Menu Brackets | |
Projects | |
Quick Search |
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 (module) { | |
'use strict'; | |
module.directive('ngEnter', function () { | |
return function (scope, element, attrs) { | |
element.bind("keydown keypress", function (event) { | |
if(event.which === 13) { | |
scope.$apply(function (){ | |
scope.$eval(attrs.ngEnter); | |
}); |
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
window.onbeforeunload = function(e) { | |
if (window.location.href.includes("sometext")) { | |
e = e || window.event; | |
// For IE and Firefox prior to version 4 | |
if (e) { | |
e.returnValue = 'Sure?'; | |
} | |
// For Safari |
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
fdisk -l | |
df -h | |
fdisk /dev/sda | |
n | |
p | |
enter | |
enter | |
enter | |
t |
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
[Unit] | |
Description=Keybox | |
After=network.target | |
[Service] | |
Type=simple | |
WorkingDirectory=/srv/keybox/KeyBox-jetty | |
ExecStart=/srv/keybox/KeyBox-jetty/startKeyBox.sh </dev/null &>/dev/null & | |
Restart=always | |
User=root |
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
# /etc/nginx/sites-enabled/webapp.conf: | |
server { | |
listen 80; | |
server_name *.coverya.no; | |
root /home/app/webapp/public; | |
client_max_body_size 4g; | |
location ^~ /assets/ { | |
allow all; | |
gzip_http_version 1.0; | |
gzip_static on; |
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
Execution | |
============ | |
1. The 4 Disciplines of Execution: Achieving Your Wildly Important Goals - Chris McChesney, Jim Huling, and Sean Covey | |
2. Measure What Matters: OKRs: The Simple Idea that Drives 10x Growth - John Doerr | |
3. The Phoenix Project - Gene Kim, George Spafford, and Kevin Behr | |
4. Project to Product: How to Survive and Thrive in the Age of Digital Disruption with the Flow Framework - Mik Kersten | |
Business | |
======== | |
1. Hard thing about the hard things - Ben horowitz |