RPC from client to FindInProjectService/search
Sending search update.
Sending search update.
RPC from client to FindInProjectService/search
Sending search update.
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 | |
# Remotely load bash scripts with sha256sum verification. | |
# USAGE: bash_import [URL] [SHA256SUM] | |
function bash_import() { | |
TMPFILE=$(mktemp) | |
curl -sSL $1 -o $TMPFILE | |
if echo "$2 $TMPFILE" | sha256sum -c -; then | |
source $TMPFILE | |
else |
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 python3 | |
import sqlite3 | |
import argparse | |
db = sqlite3.connect("test.db") | |
class Migration: | |
""" | |
The base migration class. Migrations that inherit from here can |
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
use na::Vector3; | |
use std::f64::consts::{PI}; | |
const TICK_TIMESTEP: f64 = 86400.0; | |
const GM: f64 = 1.32712440042e20; | |
#[derive(Clone, Debug)] | |
pub struct OrbitalElements { |
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
let x = 0; | |
// WORKS | |
Math.random() | |
Date.now() | |
function test_false() { | |
if (false) { | |
return x++; | |
} |
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 python3 | |
import glob | |
import csv | |
import itertools | |
from datetime import datetime, timedelta, time | |
from collections import namedtuple | |
import numpy as np | |
import matplotlib.pyplot as plt |
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
local litlua = {} | |
-- String split function - taken from Penlight | |
-- https://github.com/stevedonovan/Penlight/blob/master/lua/pl/utils.lua#L172 | |
local function split(s, re, plain, n) | |
local i1, ls = 1, {} | |
if not re then re = '%s+' end | |
if re == '' then return {s} end | |
while true do | |
local i2, i3 = s:find(re, i1, plain) |
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 | |
# Flush all current rules | |
iptables -F | |
# Accept SSH Connections | |
iptables -A INPUT -p tcp --dport 22 -j ACCEPT | |
iptables -P INPUT DROP # By default, drop all incoming connections | |
iptables -P FORWARD DROP # By default refuse to forward packets |
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 "Scene.h" | |
#include <fstream> | |
#include <sstream> | |
#include <iostream> | |
#include <vector> | |
#include <thread> | |
Scene::Scene() | |
:currMaterial(NULL),currTexIndex(-1),use_shadow(true),use_transparent_shadow(false),attenuation_coefficient(1.f),camera(NULL),accel_structure(NONE),uniform_grid(NULL) | |
{ |
NewerOlder