Skip to content

Instantly share code, notes, and snippets.

View DevData49's full-sized avatar

Debadatta Hembram DevData49

View GitHub Profile
import { print as printGraphQL } from 'graphql-tag/printer';
import RecursiveIterator from 'recursive-iterator';
import objectPath from 'object-path';
export function createNetworkInterface(url) {
return {
query(request) {
const formData = new FormData();
// search for File objects on the request and set it as formData
@DevData49
DevData49 / typeform-velocity.js
Created December 23, 2018 08:44 — forked from nathanhornby/typeform-velocity.js
Scroll to active field in form (typeform style animation) using velocity.js
// Insert into some kind of 'focus' action
var parent = $(this).parent().parent('.fieldWrap'); // Target a wrapper
// Reset active state
$('.fieldWrap').removeClass('active');
// Add active state to current field
parent.addClass('active');
@DevData49
DevData49 / roles_invesitgation.md
Created August 8, 2018 04:19 — forked from facultymatt/roles_invesitgation.md
Roles and permissions system for Nodejs

Advanced JavaScript Learning Resources

This is a list of advanced JavaScript learning resources from people who responded to this [Tweet][13] and this [Tweet][20].

  • [You Don't Know JS][3]

  • [Frontend Masters courses by Kyle Simpson][12]

  • [@mpjme][6]'s [YouTube videos][5]

@DevData49
DevData49 / storeImgInMongoWithMongoose.js
Created July 21, 2018 14:19 — forked from aheckmann/storeImgInMongoWithMongoose.js
store/display an image in mongodb using mongoose/express
/**
* Module dependencies
*/
var express = require('express');
var fs = require('fs');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// img path
@DevData49
DevData49 / CameraShake.cs
Created February 20, 2018 10:32 — forked from ftvs/CameraShake.cs
Simple camera shake effect for Unity3d, written in C#. Attach to your camera GameObject. To shake the camera, set shakeDuration to the number of seconds it should shake for. It will start shaking if it is enabled.
using UnityEngine;
using System.Collections;
public class CameraShake : MonoBehaviour
{
// Transform of the camera to shake. Grabs the gameObject's transform
// if null.
public Transform camTransform;
// How long the object should shake for.
@DevData49
DevData49 / EmptyRecyclerView.java
Created June 25, 2017 03:00 — forked from AnirudhaAgashe/EmptyRecyclerView.java
RecyclerView with provosion to add empty view like list view. Displayed when the data set is empty
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
public class EmptyRecyclerView extends RecyclerView {
@DevData49
DevData49 / SizeChangeAnimation.java
Created April 9, 2017 17:46 — forked from rahulrvp/SizeChangeAnimation.java
Change the size (expand or collapse) of a view with a material animation.
package com.example.rahul.viewexpandanimation;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Transformation;
/**
* Created by rahul on 7/11/15.
*/
public class SizeChangeAnimation extends Animation {