An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| {% for post in site.posts %} | |
| <h3><a href="{{ post.url }}">{{ post.title }}</a></h3> | |
| <p><small><strong>{{ post.date | date: "%B %e, %Y" }}</strong> . {{ post.category }} . <a href="http://erjjones.github.com{{ post.url }}#disqus_thread"></a></small></p> | |
| {% endfor %} |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| #!/usr/bin/env bash | |
| # Abort if not super user | |
| if [[ ! `whoami` = "root" ]]; then | |
| echo "You must have administrative privileges to run this script" | |
| echo "Try 'sudo ./install-java.sh'" | |
| exit 1 | |
| fi | |
| # Check that the file is a JDK archive |
| // Terminal 2048 | |
| // By: Andrew Tam | |
| // There is currently no GUI for this game and is played completely on the Terminal. | |
| // Type in the instructions such as "up", "down", "left", "right" to move the tiles | |
| // Type in "reset" to reset the game | |
| import java.util.Scanner; | |
| import java.util.Arrays; | |
| import java.util.ArrayList; | |
| import java.util.Random; |
| #!/bin/bash | |
| sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
| sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
Licence: Mit Licence
Providing a strongly opinionated perspective derived from external recommendations and personal experience, this document describes how to implement logging effectively. It includes guidance on best practices, configuration, and conventions. This document is targeted at developers who are responsible for the logging of an application.
| input { | |
| file { | |
| type => "java" | |
| tags => [ "fornax-data-share-eureka" ] | |
| # Logstash insists on absolute paths... | |
| path => "D:/fornax-data-share-runtime/eureka/fornax-data-share-eureka.log" | |
| codec => multiline { | |
| pattern => "^%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}.*" | |
| negate => "true" | |
| what => "previous" |
| /** | |
| * Super-hacky solver for the "Gopher Holes" puzzle: | |
| * http://amzn.to/2hqLO2V | |
| * | |
| * Note: I assumed that the blocks would be going vertically in one direction | |
| * and horizontally in another. | |
| * | |
| * Also: I wrote this for fun over the holidays - I'm sure this code is | |
| * terrible and could be improved. It was good enough for my needs! | |
| * |
| /** | |
| Simple Program that prints the Speed of Light in meters per second. Coded by Pedro. | |
| */ | |
| public class SpeedOfLight { | |
| public static void main(String[] args) { | |
| //I have used an integer because the needed value fits the range of an integer. I have not used a DataType wrapper here to keep it simple. | |
| int sol = 299792458; | |
| // Prints "The light speed is ... m/s" to the terminal window. |