Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Anthony Alaribe tonyalaribe

🎯
Focusing
View GitHub Profile
View Configure Tailwindcss LSP for haskell lucid with nvim lspconfig
require('lspconfig').tailwindcss.setup({
filetypes = {"haskell", "html", "javascript"},
settings = {
tailwindCSS = {
includeLanguages = {
haskell = "html"
},
experimental = {
classRegex = {"class_ \"([^\"]*)"}
}
View init.toml
#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2017 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at 163.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
# All SpaceVim option below [option] section
[options]
@tonyalaribe
tonyalaribe / collections.go
Last active Jun 22, 2018
Badger collections
View collections.go
const (
 USERSCOLLECTION = "Users"
 STORESCOLLECTION = "Stores"
 USERSTORESCOLLECTION = "UserStores"
 PRODUCTCOLLECTION = "Products"
)
View _sportsPlayersSleeping.ts
sportsPlayersSleeping(event) {
var sportsPlayersSleeping0 = performance.now();
let that = this;
// let dance = $("#dance");
//i'm simply replacing the jquery based access to dance, with a vanilla javascript form. This should improve performanace
let dance:Element = document.getElementById("dance")
if (!that.template) {
View webpack-base.js
/**
* COMMON WEBPACK CONFIGURATION
*/
const path = require('path');
const webpack = require('webpack');
module.exports = (options) => ({
entry: options.entry,
output: Object.assign({ // Compile into js/build.js
View result.json
[
{
"ID": "user1",
"Children": [
{
"ID": null,
"Children": null,
"Name": null
},
{
@tonyalaribe
tonyalaribe / player
Created May 21, 2016 — forked from isaiah/player
An audio player in golang.
View player
package main
import (
"bytes"
"code.google.com/p/portaudio-go/portaudio"
"encoding/binary"
"fmt"
"io"
"log"
"os"
@tonyalaribe
tonyalaribe / PollObjectExample.json
Created Apr 9, 2015
JSON API sstructures and examples for pollo.io
View PollObjectExample.json
{
"id": "poll id <unique>",
"pheader": "Heade or description text",
"qs": [
{
"qid": "question id <uniqe>",
"qtext": "question text",
"qtype": "question types:MC|YS|IN(m choice|yes or no|inpuy)",
"as": [
{