Skip to content

Instantly share code, notes, and snippets.

@jonvuri
jonvuri / clothing.rs
Created February 23, 2020 18:26
Thrift module path issue
// Autogenerated by Thrift Compiler (0.13.0)
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#![allow(unused_imports)]
#![allow(unused_extern_crates)]
#![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments, type_complexity))]
#![cfg_attr(rustfmt, rustfmt_skip)]
extern crate thrift;
type templateParams struct {
first string
second string
}
func writeTemplate(w io.Writer, params templateParams) {
myTemplate, err := template.New("my-template").Parse(`prefix "{{.first}}" "{{.second}}" suffix`)
if err != nil {
log.Fatal("Error parsing template: ", err)
body, .dashboard-top-panel {
background-color: #444 !important;
}
.dashboard-top-panel, .chart-container-header {
border-bottom: 1px solid #777!important;
}
.main-nav,
.mapd-chart-wrapper,
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
setopt autocd
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/Users/jrajav/.zshrc'
{ type: 'CHANGE_NUMBER', payload: 2 }
{ a: 1 } -> { a: 2 }
Object.assign({}, state, { a: 2 })
{ ...state, { a: 2 }}
@jonvuri
jonvuri / gist:496858e65bd153dab24a937e98a7875a
Created August 6, 2017 03:19
Faulty Youtube API response (including a channel result
Request URL: https://www.googleapis.com/youtube/v3/search?key=<redacted>&type=video&part=snippet&q=madeon&maxResults=10
Response:
{
"kind": "youtube#searchListResponse",
"etag": "\"m2yskBQFythfE4irbTIeOgYYfBU/12Al-8N3dv3kMWBy8SCtK0Lj08Q\"",
"nextPageToken": "CAoQAA",
"regionCode": "US",
"pageInfo": {
"totalResults": 1000000,
/* eslint-env node */
// Node
const fs = require( 'fs' )
const path = require( 'path' )
// Webpack
const webpack = require( 'webpack' )
const CaseSensitivePathsPlugin = require( 'case-sensitive-paths-webpack-plugin' )
const ExtractTextPlugin = require( 'extract-text-webpack-plugin' )
flow solo absolute { Error: Command failed: C:\Users\jraja\AppData\Roaming\npm\flow.cmd
'node' is not recognized as an internal or external command,
operable program or batch file.
at ChildProcess.exithandler (child_process.js:218:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
{ Error: spawn flow ENOENT
at exports._errnoException (util.js:1026:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn flow',
@jonvuri
jonvuri / flow check output.txt
Created September 1, 2016 14:22
react-css-modules flow error
This file has been truncated, but you can view the full file.
Skipping C:\Dev\ceg-ui\interfaces\: No such file or directory
On Windows, paths must be less than 248 characters for directories and 260 characters for files. This path has 270 characters. Skipping C:\Dev\ceg-ui\node_modules\ava\node_modules\babel-preset-stage-2\node_modules\babel-plugin-transform-decorators\node_modules\babel-helper-define-map\node_modules\babel-helper-function-name\node_modules\babel-traverse\node_modules\babylon\bin\generate-identifier-regex.js
On Windows, paths must be less than 248 characters for directories and 260 characters for files. This path has 260 characters. Skipping C:\Dev\ceg-ui\node_modules\ava\node_modules\babel-preset-stage-2\node_modules\babel-plugin-transform-decorators\node_modules\babel-helper-define-map\node_modules\babel-helper-function-name\node_modules\babel-traverse\node_modules\babylon\lib\parser\comments.js
On Windows, paths must be less than 248 characters for directories and 260 characters for files. This path has 262 characters. Skipping C:\Dev\ceg-ui\node_mod