Skip to content

Instantly share code, notes, and snippets.

View ryanmmmmm's full-sized avatar

Ryan Medlin ryanmmmmm

View GitHub Profile
// COPIED FROM https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Copyright 2020 Compound Labs, Inc.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
// 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABI

Keybase proof

I hereby claim:

  • I am ryanmmmmm on github.
  • I am ryanwmedlin (https://keybase.io/ryanwmedlin) on keybase.
  • I have a public key ASDi_sGH4A8b0oaJCdqwIOgKNaoX8Zw87d6I0PSn1xH1iQo

To claim this, I am signing this object:

@ryanmmmmm
ryanmmmmm / gist:4fef493114cce8f55e5c
Created October 7, 2014 17:07
Example CURL for Events API
curl -X POST "https://api-events.datasnap.io/v1.0/events" \
-H "Authorization: Basic NVowVEtKOEdMWk9SNDBJVTRDQk9FSDc4QjpQREdJYndXMjVDYlVrUlNJcC9PT0IrV25pRER1ZEcvUHUramZqekFFZndR" \
-H "Content-type: application/json" \
-d @production-sample.json \
-w %{time_connect}:%{time_starttransfer}:%{time_total} \
-m 30 \
-v \
@ryanmmmmm
ryanmmmmm / gist:de374797dbb9c7a89e97
Last active August 29, 2015 14:07
Sampel JSON Bode for Events API
[
{
"event_type": "beacon_depart",
"organization_ids": [
"3LcQm2bLULQgKSW3NCpoO2"
],
"project_ids": [
"3LcQm2bLULQgKSW3NCpoO2"
],
"place": {
@ryanmmmmm
ryanmmmmm / _.md
Created July 3, 2014 16:40
Circle Animation
@ryanmmmmm
ryanmmmmm / _.md
Created July 3, 2014 16:38
For Alex firstcollision
@ryanmmmmm
ryanmmmmm / _.md
Created July 3, 2014 16:28
anim test
@ryanmmmmm
ryanmmmmm / gist:9794045
Created March 26, 2014 21:29
immutant error on restart
21:24:12,493 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 51) MSC00001: Failed to start service jboss.infinispan.web.repl: org.jboss.msc.service.StartException in service jboss.infinispan.web.repl: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:87) [jboss-as-clustering-common-7.2.x.slim.incremental.14.jar:7.2.x.slim.incremental.14]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) [rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.6.0_30]
at java.lang.Thread.run(Thread.java:701) [rt.jar:1.6.0_30]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
Caused by: org.infinispan.ma