Skip to content

Instantly share code, notes, and snippets.

View Nava2's full-sized avatar

Kevin Brightwell Nava2

View GitHub Profile
> angular-starter@6.0.0 test S:\projects\angular-starter
> npm run lint && karma start
> angular-starter@6.0.0 lint S:\projects\angular-starter
> npm run tslint "src/**/*.ts"
> angular-starter@6.0.0 tslint S:\projects\angular-starter
@Nava2
Nava2 / Bar.java
Last active May 23, 2017 22:10
Simple examples used in FasterXML/jackson-modules-java8#1
public class Bar {
public String name;
public Bar(@JsonProperty("name") String name) {
this.name = name;
}
}
@Nava2
Nava2 / Bar.java
Last active May 19, 2017 04:24
Used to describe a small example of Property values
public class Bar {
public String name;
public Bar(String name) {
this.name = name;
}
}
@Nava2
Nava2 / test.c
Created April 19, 2016 01:14
LLVM comparison between simple operation test program in C and Rust
#include <stdint.h>
/* Unsigned comparisons */
/* Return 1 if condition is true, 0 otherwise */
int ct_isnonzero_u32(uint32_t x)
{
return (x|-x)>>31;
}
@Nava2
Nava2 / chrono_io
Created March 7, 2016 18:00
IO for std::chrono that prints nice messages
// chrono_io
//
// (C) Copyright Howard Hinnant
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#ifndef _CHRONO_IO
#define _CHRONO_IO
@Nava2
Nava2 / Vagrantfile
Last active March 3, 2016 16:36
Vagrant environment *similar* to Travis-CI for linux, but not identical.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# It is recommended to install the vbguest plugin:
# vagrant plugin install vagrant-vbguest
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
def is_trusty
@Nava2
Nava2 / offline-bootstrap.log
Created January 19, 2016 16:23
Umple issue #699
Buildfile: /tmp/umple/build/build.xml
[echo] Last Version: 1.23.0-3bd2bc7
bootstrap:
[echo] Last Version: 1.23.0-3bd2bc7
bootstrap:
[echo] Checking for Internet connectivity...
[echo] Set property -Donline=false if connectivity is known to be unavailable.
[get] Getting: http://repo1.maven.org
@Nava2
Nava2 / Concurrent.scala
Last active January 18, 2016 19:19
Adds "RAII"-style locking for Java's "ReadWriteLock"
import java.util.concurrent.locks.ReadWriteLock
/**
* Companion object for "scala-like" concurrent utilities
*/
object Concurrent {
/**
* Adds `this.synchronized` style locking for Java's ReadWriteLock.
* @param rwLock
@Nava2
Nava2 / my.Vagrantfile
Created August 26, 2015 00:48
Vagrant file used in setting up a VM for Umple
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
> update
[info] Updating {file:/Users/kevin/dev/workspace/hc12sim2/}hc12sim2...
[info] Resolving com.github.Nava2#scala-unsigned;Scala2.11.6 ...
[warn] problem while downloading module descriptor: https://jitpack.io/com/github/Nava2/scala-unsigned/Scala2.11.6/scala-unsigned-Scala2.11.6.pom: invalid sha1: expected=d01ee48bfb8e06092e2117a881c45f387d493a29 computed=f12ec2d65abe9da4e81373510c9f2c8ce093bbaa (1052ms)
[warn] module not found: com.github.Nava2#scala-unsigned;Scala2.11.6
[warn] ==== local: tried
[warn] /Users/kevin/.ivy2/local/com.github.Nava2/scala-unsigned/Scala2.11.6/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/github/Nava2/scala-unsigned/Scala2.11.6/scala-unsigned-Scala2.11.6.pom
[warn] ==== Twitter repo: tried