Discover gists
View PerfectHash.cpp
uint32_t NextPow2(uint32_t v) | |
{ | |
v--; | |
v |= (v >> 1); | |
v |= (v >> 2); | |
v |= (v >> 4); | |
v |= (v >> 8); | |
v |= (v >> 16); | |
v++; |
View PY0101EN-2-4-Sets.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View PY0101EN-3-3-Functions.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View GameManager.cs
using UnityEngine; | |
public class GameManager : MonoBehaviour { } |
View codebeautify.txt
{ | |
"response_code": 0, | |
"results": [ | |
{ | |
"category": "General Knowledge", | |
"type": "multiple", | |
"difficulty": "easy", | |
"question": "What is the first book of the Old Testament?", | |
"correct_answer": "Genesis", | |
"incorrect_answers": [ |
View setup.py
n_data_points = len(inputs) | |
train = int(n_data_points * 0.8) | |
validate = (n_data_points - train) // 2 | |
test = n_data_points - train - validate | |
# train the model over the specified number of epochs | |
for i in range(epochs): | |
err = 0 | |
View MovieTestApp.kt
class MovieTestApp : MovieDbApp() { | |
override fun getBaseUrl() = "http://localhost:8080" | |
} |
View Bookmark
data:text/html,<html><body style="margin:0; padding:0;"><iframe id='i' src='http://forecast.weather.gov/MapClick.php?CityName=Las+Vegas&state=NV&site=VEF&textField1=36.175&textField2=-115.136&e=0' width=100% frameborder=0 marginheight=0 marginwidth=0 scrolling=no style="height: calc(100vh + 170px + 200px);"></iframe></body><script>window.scrollTo(0, 170);window.onscroll = function(ev) {if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight - 200) {document.getElementById('i').style.height = window.innerHeight + window.scrollY + 200;}};</script></html> |
NewerOlder