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 <stdlib.h> | |
void print (int *, int); | |
void swap (int *, int, int); | |
void sort (int *, int, int); | |
int compare (int, int); | |
int search (int *, int, int); | |
int main(int argc, char const *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
// ----------------------------------------------- | |
// AMQP Acknowledgement Sample | |
// | |
// Paul Jackson (https://medium.com/@pj_) | |
var amqp = require('amqp'); | |
// Make a connection | |
var connection = amqp.createConnection(); |
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
// ----------------------------------------------------------------- | |
// Bind example | |
// | |
// Paul Jackson (pjackson@gmail.com) | |
// http://blog.paulj.me/ | |
// ----------------------------------------------------------------- | |
// Dependencies | |
var util = require('util') |
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
#!/usr/bin/env bash | |
#-------------------------------------------------- | |
# install software | |
#-------------------------------------------------- | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# system |
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
#!/usr/bin/env bash | |
#-------------------------------------------------- | |
# install software | |
#-------------------------------------------------- | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# system |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
const ( | |
MAX_WORKERS = 2 |
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
// Hello World Web Service | |
var http = require('http') | |
http.createServer((req, res) => { | |
res.writeHead(200, { "Content-Type": "text/plain" }) | |
res.write("Hello World") | |
res.end() | |
}).listen(3000) |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"log" | |
) | |
func main() { | |
http.HandleFunc("/", func (w http.ResponseWriter, req *http.Request) { |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"strconv" | |
"time" | |
) |
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
#!/bin/bash | |
for dir in $( ls | xargs ); | |
do | |
du -sh $dir 2>/dev/null | |
done |
OlderNewer