Skip to content

Instantly share code, notes, and snippets.

⚫️
⚫️

Victor Mus sdwvit

⚫️
⚫️
  • Montréal, QC, Canada
Block or report user

Report or block sdwvit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
anonymous
anonymous / -
Created Jul 4, 2017
View -
System: Host: vit-HP-ProBook-650-G2 Kernel: 4.4.0-75-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.2.8 (Gtk 3.18.9) dm: lightdm Distro: Ubuntu 16.04 xenial
Machine: System: HP (portable) product: HP ProBook 650 G2 Chassis: type: 10
Mobo: HP model: 8125 v: KBC Version 23.37 Bios: HP v: N87 Ver. 01.01 date: 01/05/2016
CPU: Quad core Intel Core i5-6440HQ (-MCP-) cache: 6144 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 20702
clock speeds: min/max: 800/3500 MHz 1: 876 MHz 2: 862 MHz 3: 893 MHz 4: 871 MHz
Graphics: Card: Intel Skylake Integrated Graphics bus-ID: 00:02.0 chip-ID: 8086:191b
Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
Resolution: 1920x1080@60.01hz, 1920x1080@60.00hz
@beccam
beccam / GettingStartedTwo.java
Last active Jul 21, 2017
Getting Started with Apache Cassandra and Java Part II
View GettingStartedTwo.java
import com.datastax.driver.core.*;
public class GettingStartedTwo {
public static void main(String[] args) {
Cluster cluster;
Session session;
ResultSet results;
Row rows;
@devongovett
devongovett / pull_request.sh
Created Apr 10, 2014
Bash script to make a pull request from the current git repository. Tries the upstream remote if possible, otherwise uses origin.
View pull_request.sh
# put this in your .bash_profile
pull_request() {
to_branch=$1
if [ -z $to_branch ]; then
to_branch="master"
fi
# try the upstream branch if possible, otherwise origin will do
upstream=$(git config --get remote.upstream.url)
origin=$(git config --get remote.origin.url)
View README.md

Read/Write React Context

Quick Start

To start working with Read/Write Context, create a pair of Provider/Consumer components in the same way as for React Context API:

let CounterContext = createContext();
@asiegman
asiegman / nginx.conf
Created Jan 29, 2015
nginx logstash output
View nginx.conf
# Output json-esque output for logstash to parse easily.
http {
# ...
log_format logstash_json '{"@timestamp": "$time_iso8601", '
'"remote_addr": "$remote_addr", '
'"remote_user": "$remote_user", '
'"body_bytes_sent": "$body_bytes_sent", '
'"request_time": "$request_time", '
@caridy
caridy / export-syntax.js
Last active Jun 25, 2019
ES6 Module Syntax Table
View export-syntax.js
// default exports
export default 42;
export default {};
export default [];
export default foo;
export default function () {}
export default class {}
export default function foo () {}
export default class foo {}
You can’t perform that action at this time.