Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeremy PELE jeremypele

View GitHub Profile
@martinheld
martinheld / GraphQL introspection query via curl.md
Last active Aug 8, 2022
GraphQL introspection query via curl
View GraphQL introspection query via curl.md

GraphQL introspection query via curl

cat introspection_query.json

{ 
  "query": "query IntrospectionQuery {
      __schema {
        queryType { name }
        mutationType { name }
View nativescript-global-tablet-specific-styles.ts
import { NgModule } from "@angular/core";
import { DeviceType } from "ui/enums";
import { device } from "platform";
import * as application from "application";
const fs = require("file-system");
@NgModule({
// ..
})
@jeremypele
jeremypele / disable_console.js
Created Mar 7, 2014
Disable javascript console
View disable_console.js
(function() {
try {
var $_console$$ = console;
Object.defineProperty(window, "console", {
get: function() {
if ($_console$$._commandLineAPI)
throw "Sorry, for security reasons, the script console is deactivated on this website";
return $_console$$
},
set: function($val$$) {