Skip to content

Instantly share code, notes, and snippets.

View Petesta's full-sized avatar

Pete Cruz Petesta

  • San Francisco, CA
View GitHub Profile
adsf
asdf
hi
█████████████████████████████████████████████
░░░░ █▀▀█ █▀▀ ▀▀█▀▀ █▀▀ █▀▀ ▀▀█▀▀ █▀▀█ ░░░░
░░░░ █▄▄█ █▀▀ ░░█░░ █▀▀ ▀▀█ ░░█░░ █▄▄█ ░░░░
░░░░ █░░░ ▀▀▀ ░░▀░░ ▀▀▀ ▀▀▀ ░░▀░░ ▀░░▀ ░░░░
█████████████████████████████████████████████
@Petesta
Petesta / .rb
Created February 4, 2022 20:09
def foo
""
end
{
"count": 1068,
"previous": null,
"results": [{
"url": "https://pokeapi.co/api/v2/pokemon-form/1/",
"name": "bulbasaur"
},
{
"url": "https://pokeapi.co/api/v2/pokemon-form/2/",
"name": "ivysaur"

Insert foreign keys into dropped_foreign_keys and drop constraints

Use the following code.

create table if not exists dropped_foreign_keys (
  seq bigserial primary key,
  sql text
);

Keybase proof

I hereby claim:

  • I am Petesta on github.
  • I am petesta (https://keybase.io/petesta) on keybase.
  • I have a public key whose fingerprint is AB24 15CF B265 BAA6 7CF0 E5B4 DDEA DBC1 4F83 C310

To claim this, I am signing this object:

@Petesta
Petesta / install_ammonite.sh
Last active October 12, 2015 03:16
Puts Ammonite on your PATH
#!/bin/bash
curl -L -o amm http://git.io/vZJoU
chmod a+x amm
sudo mv amm /usr/local/sbin
# Can now call `amm` anywhere in Terminal
@Petesta
Petesta / Build.scala
Last active September 5, 2015 01:06
import sbt._
import Keys._
object BuildSettings {
val buildSettings = Seq(
scalaVersion := "2.11.4",
scalacOptions += "",
resolvers += Resolver.sonatypeRepo("snapshots"),
resolvers += Resolver.sonatypeRepo("releases")
)
" Ex. This is what the call would look like on the command line
" sbt 'test-only test.ApplicationSpec'
function! SBTTestOnly()
let b:current_filename = split(split(@%, '/')[1], '\.')[0]
let b:sbt = ":Dispatch sbt 'test-only test.".b:current_filename."'"
execute b:sbt
endfunction
command! -nargs=0 SBT :call SBTTestOnly()
#[derive(Debug)]
struct BPM(u32);
impl BPM {
fn scale(&self, scale: f32) -> BPM {
BPM(0)
}
}
fn main() {