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
/* Generate arbitrary CPU usage */ | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <err.h> | |
#include <math.h> | |
#include <sys/time.h> | |
#include <stdarg.h> | |
#include <sys/wait.h> | |
#define CPUUSAGE 0.2 /* set it to a 0 < float < 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
"""Download Dash User Docsets and install them in Zeal""" | |
import configparser | |
import json | |
import tarfile | |
import urllib.request | |
from pathlib import Path | |
from sys import platform | |
import easygui |
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 <LiquidCrystal.h> | |
#define MAX_SEATS 19 | |
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; | |
const int redButton = 7, greenButton = 6; | |
LiquidCrystal lcd(rs, en, d4, d5, d6, d7); | |
int n_occupied = 0; | |
byte redButtonState = 0, greenButtonState = 0, prevGreenButtonState = 0, prevRedButtonState = 0; |
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
; Save this script and run it. | |
; Win+Shift+v will type the contents of your clipboard | |
#+v::SendRaw, %Clipboard% |
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
diff --git a/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc b/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc | |
index 0f7adaf24a..355584456b 100644 | |
--- a/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc | |
+++ b/tensorflow/core/kernels/concat_lib_gpu_impl.cu.cc | |
@@ -69,7 +69,7 @@ __global__ void concat_variable_kernel( | |
IntType num_inputs = input_ptr_data.size; | |
// verbose declaration needed due to template | |
- extern __shared__ __align__(sizeof(T)) unsigned char smem[]; | |
+ extern __shared__ unsigned char smem[]; |
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
on safari_is_ready(docNum, interval) | |
repeat | |
tell application "Safari" | |
try | |
do JavaScript "document.readyState" in document docNum | |
set readyState to result | |
set finishedLoading to (source of document docNum contains "</html>") | |
if finishedLoading and readyState is "Complete" then exit repeat | |
end try | |
end tell |
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
on parse_input_string(theString) | |
set AppleScript's text item delimiters to " " | |
set theFromAmount to text item 1 of theString as text | |
if length of text items of theString is greater than 1 then | |
set theFromCurrency to text item 2 of theString as text | |
set theToCurrency to text item -1 of theString as text | |
set currenciesGiven to true | |
else | |
set theFromCurrency to "USD" | |
set theToCurrency to "EUR" |
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
$ ./configure | |
You have bazel 0.7.0-homebrew installed. | |
Please specify the location of python. [Default is /usr/bin/python]: /usr/local/bin/python3 | |
Found possible Python library paths: | |
/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages | |
Please input the desired Python library path to use. Default is [/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages] | |
Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: |
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
on number_to_string(this_number) | |
set this_number to this_number as string | |
if this_number contains "E+" then | |
set x to the offset of "," in this_number | |
set y to the offset of "+" in this_number | |
set z to the offset of "E" in this_number | |
set the decimal_adjust to characters (y - (length of this_number)) thru ¬ | |
-1 of this_number as string as number | |
if x is not 0 then | |
set the first_part to characters 1 thru (x - 1) of this_number as string |
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
- repo: git://github.com/pre-commit/pre-commit-hooks | |
sha: master | |
hooks: | |
- id: trailing-whitespace | |
- id: autopep8-wrapper | |
- id: check-added-large-files | |
- id: check-ast | |
language_version: python3.4 | |
- id: check-case-conflict | |
- id: check-docstring-first |
NewerOlder