Skip to content

Instantly share code, notes, and snippets.

😫
const refactor = code => refactor(code);

Patrick Lienau rozzzly

😫
const refactor = code => refactor(code);
Block or report user

Report or block rozzzly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rozzzly
rozzzly / RejectionTypeAssertion.ts
Last active May 20, 2018
Typescript Negative TypeGuards in Promise Rejections: this doesn't exist.. but it would be cool if something like this did.. I guess
View RejectionTypeAssertion.ts
/**
* 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>;
}
@rozzzly
rozzzly / cloudSettings
Last active Jun 2, 2020
Visual Studio code settings
View cloudSettings
{"lastUpload":"2020-06-02T00:53:41.465Z","extensionVersion":"v3.4.3"}
@rozzzly
rozzzly / indexer.sh
Created Oct 19, 2015
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
View indexer.sh
```
#!/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
View adnanherlp
#!/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)"
View basicCC.rb
#!/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)"
You can’t perform that action at this time.