Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block philipstanislaus

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
philipstanislaus / includeJQuery.js
Created Jan 29, 2016
Include jQuery in any page from console
View includeJQuery.js
var jq = document.createElement('script');
jq.src = "";
// ... give time for script to load, then type.
philipstanislaus / docker stop and remove all
Last active Sep 2, 2016
Stop and remove all Docker containers
View docker stop and remove all
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
philipstanislaus / cloudSettings
Last active Mar 2, 2017
Visual Studio Code Sync Settings GIST
View cloudSettings
philipstanislaus / JavaScript's prototypical inheritance.js
Last active Jun 28, 2017
JavaScript inheritance (prototype, __proto__, constructor) in ES2015/ES6 and ES5
View JavaScript's prototypical inheritance.js
class Animal {
animalProp() {}
// ES2015/ES6
class Cat extends Animal {
catProp() {}
const myCat = new Cat()
philipstanislaus / Drop all tables.sql
Created Aug 4, 2017
Drop all tables from one schema in Postgres
View Drop all tables.sql
select 'drop table if exists "' || tablename || '" cascade;'
from pg_tables
where schemaname = 'public'; -- or any other schema
philipstanislaus / gist:c7de1f43b52531001412
Created Feb 26, 2016
JavaScript: Save a blob to disc
View gist:c7de1f43b52531001412
var saveBlob = (function () {
var a = document.createElement("a");
document.body.appendChild(a); = "display: none";
return function (blob, fileName) {
var url = window.URL.createObjectURL(blob);
a.href = url; = fileName;;
View optional_values_with_nil_pointers_test.go
package playground_optional_values_with_nil_pointers
import (
// Bool represents boolean values
View optional_values_with_empty_field_test.go
package playground_optional_values_with_nil_pointers
import (
// Bool represents boolean values
You can’t perform that action at this time.