sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo reboot
This file contains hidden or 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 | |
| set -o nounset | |
| set -o errexit | |
| # Required! | |
| # downloads/ directory with: | |
| # cuda_8.0.27_linux.run with md5 checksum: bea6165ccd0a6690cac04ed9544bbe57 | |
| # cudnn-8.0-linux-x64-v5.0-ga.tgz with md5 checksum: be1896b0db052a7ca06a062262c4b842 | |
| NVIDIA_FILENAME=NVIDIA-Linux-x86_64-367.27.run |
This file contains hidden or 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
| # Required downloads: | |
| # NVIDIA-Linux-x86_64-367.27.run | |
| # cuda_8.0.27_linux.run | |
| # cudnn-8.0-linux-x64-v5.0-ga.tgz | |
| sudo apt-get install build-essential | |
| sudo apt-get install linux-image-extra-`uname -r` | |
| sudo ./NVIDIA-Linux-x86_64-367.27.run | |
| ./cuda_8.0.27_linux.run --extract=`pwd`/extracts | |
| sudo ./extracts/cuda-linux64-rel-8.0.27-20733550.run |
This file contains hidden or 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
| import numpy as np | |
| #https://en.wikipedia.org/wiki/Blend_modes#Soft_Light | |
| def soft_light_blend(im1, im2): | |
| nrm_im1 = im1/255. | |
| nrm_im2 = im2/255. | |
| res = np.zeros_like(nrm_im1) | |
| xif = nrm_im2 < .5 | |
| xel = nrm_im2 >= .5 |
This file contains hidden or 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
| using UnityEditor; | |
| using System; | |
| using System.Collections.Generic; | |
| class BuildScript { | |
| static string[] SCENES = FindEnabledEditorScenes(); | |
| static string APP_NAME = "AngryBots"; | |
| static string TARGET_DIR = "target"; |
This file contains hidden or 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
| import cv2 | |
| import math | |
| import numpy as np | |
| import sys | |
| def apply_mask(matrix, mask, fill_value): | |
| masked = np.ma.array(matrix, mask=mask, fill_value=fill_value) | |
| return masked.filled() | |
| def apply_threshold(matrix, low_value, high_value): |
This file contains hidden or 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
| post_install do |installer| | |
| installer.project.targets.each do |target| | |
| target.build_configurations.each do |config| | |
| if config.name == 'BREnterprise' | |
| config.build_settings['CODE_SIGN_IDENTITY[sdk=iphoneos*]'] = 'iPhone Distribution: The Carter Group LLC' | |
| config.build_settings['PROVISIONING_PROFILE'] = '${BR_ENTERPRISE_PROVISIONING_PROFILE}' | |
| end | |
| end | |
| end |
This file contains hidden or 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
| # Node.js app Docker file | |
| FROM ubuntu:14.04 | |
| MAINTAINER Thom Nichols "[email protected]" | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN apt-get update | |
| RUN apt-get -qq update | |
| RUN apt-get install -y nodejs npm |
This file contains hidden or 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 fs = require('fs'), | |
| stub = require('./stub'), | |
| _ = require('underscore'), | |
| request = require('request'); | |
| // config for local file | |
| var basePath = "images/", | |
| data = stub.data, | |
| urlRoot = "http://cdn.catalogs.com/"; |
NewerOlder