brew unlink crystal-lang
brew install <url to formula> # check more on appendix below
If you'd like to check for installed crystal versions, just run:
const { ApolloServer, gql } = require('apollo-server') | |
const { Prisma } = require('../generated/prisma-client') | |
const { importSchema } = require('graphql-import') | |
const resolvers = require('./resolvers') | |
const importedTypeDefs = importSchema(__dirname + '/../generated/prisma.graphql'); | |
const typeDefs = gql`${importedTypeDefs}` | |
const endpoint = 'http://localhost:4466' |
import test from 'ava' | |
import fs from 'fs' | |
import mock from 'mock-fs' | |
test.before(t => { | |
mock({ | |
'dir': { | |
'document': 'mocked content' | |
} | |
}) |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import PropTypes from 'prop-types' | |
import styled, {ThemeProvider} from 'styled-components'; | |
const Button = styled.button` | |
font-size: 1em; | |
margin: 1em; | |
padding: 0.25em 1em; | |
border-radius: 3px; |
require 'trailblazer/endpoint' | |
require 'trailblazer/endpoint/app_matcher' | |
class Api::Controller < ApplicationController | |
protect_from_forgery with: :null_session | |
protected | |
def default_handler | |
->(m) do |
xcode-select --install | |
brew install \ | |
bdw-gc \ | |
gmp \ | |
libevent \ | |
libpcl \ | |
libxml2 \ | |
libyaml \ | |
llvm | |
git clone https://github.com/crystal-lang/crystal.git |
$ trailblazer generate operation Thing::Create | |
class Thing::Create < Trailblazer::Operation | |
end | |
$ trailblazer generate operation Thing::Create --steps | |
class Thing::Create < Trailblazer::Operation | |
step Model( Song, :new ) | |
step :assign_current_user! | |
end |
QUnit.config.hidepassed = false; | |
var timeout = QUnit.config.testTimeout; | |
console.log(timeout); | |
QUnit.config.testTimeout = 10000; | |
QUnit.test( "VirtualMachines#index", function( assert ) { | |
assert.expect( 2 ); | |
var done = assert.async(2); | |
assert.equal( sum(1, 1), 2, "Passed!" ); |
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
# | |
# This file was generated by Bundler. | |
# | |
# The application 'blade' is installed as part of a gem, and | |
# this file is here to facilitate running it. | |
# | |
# Put this file on bin/blade |