Spoiler alert it sucks. But this worked for me:
rvm install x.x.x --with-openssl-dir=`brew --prefix openssl`
// | |
// UIBorderedLabel.swift | |
// standToMake | |
// | |
// Created by Karl Oscar Weber on 9/13/14. | |
// Copyright (c) 2014 Karl Oscar Weber. All rights reserved. | |
// | |
// Thanks to: http://userflex.wordpress.com/2012/04/05/uilabel-custom-insets/ | |
import UIKit |
<?php | |
# This function reads your DATABASE_URL config var and returns a connection | |
# string suitable for pg_connect. Put this in your app. | |
function pg_connection_string_from_database_url() { | |
extract(parse_url($_ENV["DATABASE_URL"])); | |
return "user=$user password=$pass host=$host dbname=" . substr($path, 1); # <- you may want to add sslmode=require there too | |
} | |
# Here we establish the connection. Yes, that's all. | |
$pg_conn = pg_connect(pg_connection_string_from_database_url()); |
Spoiler alert it sucks. But this worked for me:
rvm install x.x.x --with-openssl-dir=`brew --prefix openssl`
# I often have issues when installing ruby, through rvm, onto an M1 mac. | |
# It's usually this one problem. But installing with the follwing command almost always works: | |
# reference: https://github.com/rvm/rvm/issues/5043#issuecomment-811891226 | |
```bash | |
CFLAGS="-Wno-error=implicit-function-declaration" rvm install 2.6.6 | |
``` |
require"uri";require"rack";E||="Content-Type";Z||="text/html" | |
class Object;def meta_def m,&b;(class<<self;self | |
end).send:define_method,m,&b end;end;module Camping;C=self;S=IO.read(__FILE__ | |
)rescue nil;P="<h1>Cam\ping Problem!</h1><h2>%s</h2>";U=Rack::Utils;O={url_prefix:""};Apps=[]; | |
SK=:camping;G=[];class H<Hash;def method_missing m,*a;m.to_s=~/=$/?self[$`]=a[0]:a==[]?self[m. | |
to_s]:super end;undef id,type if ??==63 end;class Cookies<H;attr_accessor :_p; | |
def _n;@n||={}end;alias _s []=;def set k,v,o={};_s(j=k.to_s,v);_n[j]= | |
{:value=>v,:path=>_p}.update o;end;def []=(k,v)set(k,v,v.is_a?(Hash)?v:{})end | |
end;module Helpers;def R c,*g;p,h= | |
/\(.+?\)/,g.grep(Hash);g-=h;raise"bad route"if !u=c.urls.find{|x|break x if |
// This will open up a prompt for text to send to a console session on digital ocean | |
// Useful for long passwords | |
(function () { | |
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split(""); | |
function f() { | |
var character = t.shift(); | |
var i=[]; | |
var code = character.charCodeAt(); | |
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1 |
const sketcher = require('canvas-sketch-tool'); // not yet public | |
// Import geometry & utilities | |
const createRegl = require('regl'); | |
const createPrimitive = require('primitive-icosphere'); | |
const createCamera = require('perspective-camera'); | |
const glslify = require('glslify'); | |
const hexRgb = require('hex-rgb'); | |
// Utility to convert hex string to [ r, g, b] floats |
.my-link { | |
text-decoration: underline; | |
} |
<?php | |
// App/controllers/components/mandrill.php | |
class MandrillComponent extends Object | |
{ | |
var $components = array('Session', 'RestRequest'); | |
var $settings = array( | |
'host' => 'smtp.mandrillapp.com', | |
'port' => '587', | |
'username' => 'username', |
So, this is a collection of classes tha makes it way easier to work with most of the base api, getbase.com.
It's organized as follows
obviously the controller. it uses simple GET urls to determine get, post, put, and delete requests, as well as which resource is being requested.