Skip to content

Instantly share code, notes, and snippets.

@ronaldcurtis
ronaldcurtis / Gruntfile.js
Last active April 24, 2017 00:10
Ruby on Rails asset Pipeline on Sails.js
module.exports = function(grunt) {
grunt.initConfig({
shell: {
precompile: {
command: 'node precompile.js',
options: {
stdout: true,
failOnError: true
}
@ronaldcurtis
ronaldcurtis / Preferences.sublime-settings
Last active January 6, 2017 08:36
Sublime text preferences
{
"binary_file_patterns":
[
".git/**",
".hg/**",
".svn/**",
"/Users/ronaldcurtis/Sites/locarise/styleguide/build/**",
"CVS/**",
"bower_components/**",
"node_modules/**",
@ronaldcurtis
ronaldcurtis / gist:e0b1b3b7499e5b92a323
Last active August 29, 2015 14:05
.bash_profile gist
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
NO_COLOR="\[\033[0m\]"
export PS1="$GREEN\u@\h$NO_COLOR:\w$YELLOW\$(parse_git_branch)$NO_COLOR\$ "
{
"nodes":[
{
"uid":"B15t95OI",
"floor":"1F",
"is_entrance":false,
"is_exit":false,
"location":{
"type":"Point",
"coordinates":[
Last login: Tue Oct 1 09:48:26 on ttys012
~/Blake/bx/libexec/mac-bootstrap/core-repos.sh
~ ❯❯❯ ~/Blake/bx/libexec/mac-bootstrap/core-repos.sh
Installing ruby if necessary...
.ruby-version says you need ruby-2.3.8, which is version 2.3.8 and
you have that ruby.
Latest version already installed. Done.
true
bundler already installed
Installing bundler
@ronaldcurtis
ronaldcurtis / not_equal_filter_not_working
Created June 18, 2021 09:11
typesense_not_equal_filter_not_working
docker run -p 8108:8108 -v /data typesense/typesense:0.21.0.rc15 --data-dir /data --api-key=dev
curl "http://localhost:8108/collections" \
-X POST \
-H "Content-Type: application/json" \
-H "X-TYPESENSE-API-KEY: dev" \
-d '{"name": "records",
"fields": [
{ "name": "name", "type": "string" },
{ "name": "user_id_facet", "type": "string", "facet": true }