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
const display = { | |
display: 'block' | |
}; | |
const hide = { | |
display: 'none' | |
}; | |
class Modal extends React.Component { | |
constructor(props) { | |
super(props); |
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
files: | |
"/etc/nginx/conf.d/01_websockets.conf" : | |
mode: "000644" | |
owner: root | |
group: root | |
content : | | |
upstream nodejs { | |
server 127.0.0.1:8081; | |
keepalive 256; | |
} |
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
var camera, scene, renderer; | |
var geometry, material, mesh; | |
init(); | |
animate(); | |
function init() { | |
camera = new THREE.PerspectiveCamera(70, window.innerWidth / window.innerHeight, 0.01, 100); | |
camera.position.z = 1; |
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
var camera, scene, renderer; | |
var geometry, material, mesh; | |
init(); | |
animate(); | |
function init() { | |
camera = new THREE.PerspectiveCamera( | |
70, |
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
<?php | |
function zapier($url, $json, $headers) { | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_TIMEOUT, 10); | |
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $json); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); |
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 | |
export LDFLAGS=-Wl,-rpath=/var/task/lib/ | |
export PKG_CONFIG_PATH='/canvas/lib/pkgconfig' | |
export LD_LIBRARY_PATH='/canvas/lib':$LD_LIBRARY_PATH | |
C_INCLUDE_PATH=/canvas/include/ | |
CPLUS_INCLUDE_PATH=/canvas/include/ | |
export C_INCLUDE_PATH | |
export CPLUS_INCLUDE_PATH |
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
pdftk "${file}" dump_data | grep NumberOfPages | awk '{print $2}' | tr -dc '[0-9]' |
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
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere | |
\PassOptionsToPackage{hyphens}{url} | |
% | |
\documentclass[]{article} | |
\usepackage{lmodern} | |
\usepackage{amssymb,amsmath} | |
\usepackage{ifxetex,ifluatex} | |
\usepackage{fixltx2e} % provides \textsubscript | |
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex | |
\usepackage[T1]{fontenc} |
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 | |
yum -y update | |
yum -y install gcc make | |
cd /usr/local/src | |
wget http://download.redis.io/releases/redis-3.2.0.tar.gz | |
tar xzf redis-3.2.0.tar.gz | |
rm -f 3.2.0.tar.gz | |
cd redis-3.2.0 | |
make distclean |
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 /path/to/local.conf | |
# include /path/to/other.conf | |
# bind 127.0.0.1 | |
protected-mode no | |
port 6379 | |
tcp-backlog 511 | |
# unixsocket /tmp/redis.sock | |
# unixsocketperm 700 | |
timeout 0 | |
tcp-keepalive 0 |
OlderNewer