Skip to content

Instantly share code, notes, and snippets.

View gist:f14c386a2c50c1c49340c158e4adc9b9
Configuration on demand is an incubating feature.
> Task :dependencies
------------------------------------------------------------
Root project
------------------------------------------------------------
-api (n)
No dependencies
View gist:c3d795049ed49e792b4e036e98b32310
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@37999eb8 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@206ea7ea[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 5]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:326)
at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:533)
at java.util.concurrent.ScheduledThreadPoolExecutor.execute(ScheduledThreadPoolExecutor.java:622)
at io.grpc.internal.SerializingExecutor.schedule(SerializingExecutor.java:93)
at io.grpc.internal.SerializingExecutor.execute(SerializingExecutor.java:86)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.closedInternal(ClientCallIm
View keybase.md

Keybase proof

I hereby claim:

  • I am ndarilek on github.
  • I am ndarilek (https://keybase.io/ndarilek) on keybase.
  • I have a public key ASAtSTMdX6Nfvef8YNOImW9NAwNsFvgWEX2NyBGtYDlbzQo

To claim this, I am signing this object:

View gist:fb6123c85956c2a458e1e2a057c11afe
```
pub struct AudioEmitter {
context: Context,
sources: HashMap<String, Arc<Mutex<StaticSource>>>,
}
impl AudioEmitter {
pub fn new(context: Context) -> Self {
AudioEmitter {
context,
View gist:3239c2e659626d2f8a1818553071e3d3
use std::cell::RefCell;
use std::collections::HashMap;
use std::io::Cursor;
use std::sync::{Arc, Mutex};
use alto::{Alto, Buffer, Context, Mono, Stereo, Source, SourceState, StaticSource};
use amethyst::{
Error,
assets::{Asset, AssetStorage, Handle, ProcessingState, Processor, SimpleFormat},
core::{
View gist:24638e442517dfae526e3e0e6c2e7b26
neon info running cargo
Compiling nodejs v0.1.0 (/home/nolan/Projects/Waynav/nodejs/native)
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/nolan/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/nolan/Projects/Waynav/nodejs/native/target/debug/deps/nodejs.15by83y8xnkh2dwe.rcgu.o" "/home/nolan/Projects/Waynav/nodejs/native/target/debug/deps/nodejs.160iftngrqk0veo3.rcgu.o" "/home/nolan/Projects/Waynav/nodejs/native/target/debug/deps/nodejs.16vzmueixfemvzp4.rcgu.o" "/home/nolan/Projects/Waynav/nodejs/native/target/debug/deps/nodejs.180lkhxmk02vyucl.rcgu.o" "/home/nolan/Projects/Waynav/nodejs/native/target/debug/deps/nodejs.19nzdd4h3hpsjc5v.rcgu.o" "/home/nolan/Projects/Waynav/nodejs/native/target/debug/deps/nodejs.1caie5m6x9chjypx.rcgu.o" "/home/nolan/Projects/Waynav/nodejs/native/target/debug/deps/nodejs.1d54lkegiud9y4sp.rcgu.o" "/home/nolan/Projects/Waynav/nodejs/native/target/debug
View gist:aea819cc6fb1bd68e44f730a4bedcd0e
[INFO][winit::platform::platform::x11::window] Guessed window DPI factor: 1
[DEBUG][winit::platform::platform::x11::window] Calculated physical dimensions: 600x500
[INFO][gfx_device_gl::info] parsing version '4.5 (Core Profile) Mesa 18.0.5'
[INFO][gfx_device_gl::info] parsing version '4.50'
[INFO][gfx_device_gl] Info { platform_name: PlatformName { vendor: "Intel Open Source Technology Center", renderer: "Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2) " }, version: 4.5, shading_language: 4.50, extensions: {"GL_KHR_blend_equation_advanced", "GL_ARB_draw_indirect", "GL_ARB_program_interface_query", "GL_ARB_multi_bind", "GL_ARB_seamless_cubemap_per_texture", "GL_ARB_texture_rg", "GL_AMD_vertex_shader_layer", "GL_ARB_draw_buffers", "GL_ARB_compressed_texture_pixel_storage", "GL_EXT_texture_filter_anisotropic", "GL_ARB_shader_group_vote", "GL_KHR_no_error", "GL_EXT_vertex_array_bgra", "GL_AMD_draw_buffers_blend", "GL_ARB_robust_buffer_access_behavior", "GL_ARB_transform_
View synapse.log
2018-11-05 17:22:01,360 - root - 212 - WARNING - None- ***** STARTING SERVER *****
2018-11-05 17:22:01,369 - synapse.util.versionstring - 82 - INFO - None- Failed to check for git repository: [Errno 2] No such file or directory
2018-11-05 17:22:01,370 - root - 215 - WARNING - None- Server /usr/local/lib/python2.7/site-packages/synapse/app/homeserver.py version 0.33.8
2018-11-05 17:22:01,370 - root - 217 - INFO - None- Server hostname: thewordnerd.info
2018-11-05 17:22:01,371 - synapse.python_dependencies - 143 - INFO - None- Using 'saml2' version '4.6.3' from '/usr/local/lib/python2.7/site-packages/saml2/__init__.pyc' to satisfy 'pysaml2>=3.0.0'
2018-11-05 17:22:01,371 - synapse.python_dependencies - 143 - INFO - None- Using 'frozendict' version None from '/usr/local/lib/python2.7/site-packages/frozendict/__init__.pyc' to satisfy 'frozendict>=1'
2018-11-05 17:22:01,371 - synapse.python_dependencies - 143 - INFO - None- Using 'six' version '1.11.0' from '/usr/local/lib/python2.7/site-packages/six.pyc' to satis
View CMakeLists.txt
cmake_minimum_required(VERSION 3.4.1)
include(ExternalProject)
ExternalProject_Add(proj
URL http://download.osgeo.org/proj/proj-4.9.3.tar.gz
# URL_HASH MD5=d41d8cd98f00b204e9800998ecf8427e
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --without-mutex
BUILD_COMMAND "make"
)
View gist:ac90452bda84e038a8012efe0b019c84
create function app.user_email_verified(u app.user) returns boolean as $$
declare
c integer;
begin
select into c count(user_id) from app_private.email_verification_token where user_id = u.id;
if c = 0 then
return true;
else
return false;
end if