Skip to content

Instantly share code, notes, and snippets.

View rubystar's full-sized avatar

Venkata Reddy Bhavanam rubystar

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.3.0/knockout-min.js"></script>
@rubystar
rubystar / webio.sh
Last active November 16, 2017 14:13
error installing web driver io tests
[venkat@localhost modular-social-insights]$ npm install
> fibers@2.0.0 install /home/venkat/workspace/modular-social-insights/node_modules/fibers
> node build.js || nodejs build.js
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory `/home/venkat/workspace/modular-social-insights/node_modules/fibers/build'
CXX(target) Release/obj.target/fibers/src/fibers.o
@rubystar
rubystar / redis_record.rb
Created October 26, 2017 13:30
Redis record
require "redis"
$redis = Redis.new
class ReportExport
attr_reader :id
def initialize
@id = SecureRandom.uuid
end
@rubystar
rubystar / report prop structure
Created July 17, 2017 07:45
data as a report prop for rendering a report
// prepare this inside the container component
report: {
id: 1,
allOtherKeys: "values", // keep all the required report(widget) data at first level
charts: [
{
id: 11,
settings: {
@rubystar
rubystar / state structure
Last active July 4, 2017 08:08
redux state structure
//Widgets
{
byId: {
1: {
settings:{name: 'report 1', description: 'report 1 desc'},
child_widget_ids: [10, 11]
},
2: {
settings:{name: 'report 2', description: 'report 2 desc'},
child_widget_ids: [12, 13]
Account Name: アビームコンサルティング株式会社
Bundle Name: 神奈川県
@rubystar
rubystar / error in installing libxml-ruby gem
Created May 25, 2012 11:36
migrating to ruby 1.9.3 from 1.8.7
-sh-4.2$ bundle install
Fetching gem metadata from http://rubygems.org/.....
Fetching gem metadata from http://rubygems.org/..
Fetching git://github.com/ctran/annotate_models.git
remote: Counting objects: 890, done.
remote: Compressing objects: 100% (476/476), done.
remote: Total 890 (delta 414), reused 820 (delta 356)
Receiving objects: 100% (890/890), 189.25 KiB | 114 KiB/s, done.
Resolving deltas: 100% (414/414), done.
Fetching git://github.com/ryanb/nested_form.git
@rubystar
rubystar / RZ-3179 rebase
Created September 24, 2013 12:12
RZ-3179 rebase
[venkatab@PNWSDES053 redzone]$ git rebase master
First, rewinding head to replay your work on top of it...
Applying: RZ-3810 -- As a System, I should use Zendesk for all issue tracking.
Using index info to reconstruct a base tree...
<stdin>:260: trailing whitespace.
@search = Sunspot.search Department, Agency, Advertiser, Publisher, Campaign, Site, Zone, User, SalesRep, Company, Market, DeliveryReportTemplate do |query|
<stdin>:343: trailing whitespace.
:geo_target, :geo_target_group, :geo_target_group_geo_target, :global_config, :search_keyword,
<stdin>:1009: trailing whitespace.
@rubystar
rubystar / UI rebase on 18th June
Created June 18, 2013 10:21
UI rebase on 18th June
[venkatab@PNWSDES053 redzone]$ git rebase master
First, rewinding head to replay your work on top of it...
Applying: RZ-3203 - As a developer, I want to migrate the remaining ERB views to HAML
Using index info to reconstruct a base tree...
<stdin>:679: trailing whitespace.
<stdin>:2746: trailing whitespace.
warning: 2 lines add whitespace errors.
Falling back to patching base and 3-way merge...
@rubystar
rubystar / solr schema.xml
Created June 7, 2013 07:01
partilal solr search
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0