Use the bitwise OR operator ( | ) to set a bit.
number |= 1 << x;
#!/usr/bin/ruby | |
# WANT_JSON | |
# | |
# osx_service - Ansible module to manage launchd services on Mac OS X | |
# | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2016 Björn Albers <[email protected]> | |
# |
List of desktop Nvidia GPUS ordered by CUDA core count
I created it for those who use Neural Style
Guys, please add your hardware setups, neural-style configs and results in comments!
GPU | CUDA cores | Memory | Processor frequency |
---|---|---|---|
GeForce GTX TITAN Z | 5760 | 12 GB | 705 / 876 |
git clean -xfd | |
git submodule foreach --recursive git clean -xfd | |
git reset --hard | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
namespace :deploy do | |
before :updated, :setup_solr_data_dir do | |
on roles(:app) do | |
unless test "[ -d #{shared_path}/solr/data ]" | |
execute :mkdir, "-p #{shared_path}/solr/data" | |
end | |
end | |
end | |
end |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
require 'erb' | |
class MissingSpecGenerator | |
def spec_file(spec_path, file_name, spec_template, namespace) | |
spec_name = file_name.gsub('.rb', '') + '_spec.rb' | |
if File.exist?("#{spec_path}/#{spec_name}") | |
puts "#{spec_path}/#{spec_name} exists" | |
else | |
puts "#{spec_path}/#{spec_name} missing" |