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 / 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
1) Create an Apex Class
Steps: Click Your Name | Setup | Develop | Apex Classes and click New.
Paste the following code there.
global class asyncApex {
@future (callout=true)
public static void processAccount(Id accountId) {