Skip to content

Instantly share code, notes, and snippets.

View rozzzly's full-sized avatar
😫
const refactor = code => refactor(code);

Patrick Lienau rozzzly

😫
const refactor = code => refactor(code);
View GitHub Profile
#!/usr/bin/ruby
load 'creditCard.rb'
require 'sqlite3'
begin
db = SQLite3::Database.new "test.db"
db = SQLite3::Database.open "test.db"
db.execute "CREATE TABLE IF NOT EXISTS People(Id INTEGER PRIMARY KEY,
Name TEXT, Credit TEXT, Limit INT, Price INT)"
@rozzzly
rozzzly / adnanherlp
Created December 5, 2014 22:17
adnan herlp
#!/usr/bin/ruby
load 'creditCard.rb'
require 'sqlite3'
begin
db = SQLite3::Database.new "test.db" # ! automaticly creates new db, overwrites anything you have currently --> info in db will just be your last action
db = SQLite3::Database.open "test.db"
db.execute "CREATE TABLE IF NOT EXISTS People(Id INTEGER PRIMARY KEY, # ! fuck the 'Id', SQLite has and auto index, dont have to worry about autoinc, or nuffin
Name TEXT, Credit TEXT, Limit INT, Price INT)"
@rozzzly
rozzzly / indexer.sh
Created October 19, 2015 19:45
bash script to index bower components for fourseven:meteor-scss because meteor@1.2.0 had breaking changes to the build chain @see https://github.com/fourseven/meteor-scss/issues/138
```
#!/usr/bin/env bash
### first half of script iterates over local packages, cd's into each
echo "======[Curating Bower Dependencies]==============================="
# not -f because this is a -dIRECTORY!
if [ -d bower_components ]; then
derp
@rozzzly
rozzzly / cloudSettings
Last active February 23, 2021 15:38
Visual Studio code settings
{"lastUpload":"2020-11-27T21:07:52.477Z","extensionVersion":"v3.4.3"}
@rozzzly
rozzzly / RejectionTypeAssertion.ts
Last active May 20, 2018 05:14
Typescript Negative TypeGuards in Promise Rejections: this doesn't exist.. but it would be cool if something like this did.. I guess
/**
* this doesn't exist.. but it would be cool if something like this did.. I guess
*
*/
interface BaseFile {
readonly path: string;
isValid: Promise<this is ValidFile>;
}