This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gulp watch | |
module.js:338 | |
throw err; | |
^ | |
Error: Cannot find module 'orchestrator' | |
at Function.Module._resolveFilename (module.js:336:15) | |
at Function.Module._load (module.js:278:25) | |
at Module.require (module.js:365:17) | |
at require (module.js:384:17) | |
at Object.<anonymous> (/Users/nick/aurelia/navigation-app/node_modules/gulp/index.js:4:20) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- Primary Entities | |
-- You search by these | |
create table tag ( | |
id serial primary key, | |
name varchar not null, | |
unique (name) | |
); | |
-- The primary post type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function to_char(number){ | |
return [ | |
(number & 0xff000000) >>> 24, | |
(number & 0x00ff0000) >>> 16, | |
(number & 0x0000ff00) >>> 8, | |
(number & 0x000000ff) >>> 0 | |
]; | |
} | |
function to_char_array(wordarray){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
builder.js:43 Uncaught TypeError: Cannot read property 'title' of null | |
builder.js:43 buildDocspreview.js:30 update | |
local-storage.js:17 (anonymous function) | |
local-storage.js:16 LocalStorage.save | |
editor.js:24 onAceChange | |
lodash.js:6879 delayed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
version: "0.0.0" | |
title: Example | |
paths: | |
/test: | |
get: | |
responses: | |
200: | |
description: OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.session.query(MyTable).filter( | |
db.or_( | |
db.text("(my_table.json_field ->> key)::text = :value").bindparams(value=value1), | |
db.text("(my_table.json_field ->> key)::text = :value").bindparams(value=value2), | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/jmoiron/sqlx" | |
_ "github.com/lib/pq" | |
) | |
type Result struct { | |
Testhex string | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl genrsa -out private.pem 4096 | |
openssl spkac -key private.pem > public.spkac | |
echo "CN=test" >> public.spkac | |
openssl ca -config openssl.conf -extensions client -spkac public.spkac -out signed.pem -batch | |
openssl pkcs12 -nodes -export -inkey private.pem -in signed.pem -out cert.p12 | |
# No certificate matches private key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
"code.google.com/p/gogoprotobuf/proto" | |
"path/to/protobufs" | |
"io/ioutil" | |
) | |
func read_protobuf(request *http.Request) *protobufs.MyMessage { | |
body, err := ioutil.ReadAll(request.Body) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import Column, ForeignKey, Integer, String, ForeignKeyConstraint | |
from sqlalchemy import create_engine | |
from sqlalchemy.orm import sessionmaker, relationship | |
Model = declarative_base() | |
class Parent(Model): | |
__tablename__ = 'parent' | |
id = Column(Integer, primary_key=True) |