text:
docker stop sftp_testserver
docker rm sftp_testserver

docker stop ftp_testserver
docker rm ftp_testserver


text:
layout: post
title: OSX Mavericks on Virtualbox in Linux
excerpt: For a while now, I've been trying to get OSX running inside a VM on my
  Debian machine. I myself own a Macbook pro and a Mac Mini, but I still would
  li...
slug: osx-mavericks-on-virtualbox-in-linux
permalink: article/osx-mavericks-on-virtualbox-in-linux/index.html
date: 2014-10-08
updatedDate: 2014-10-08
tags:
  - post
  - debian
  - osx
  - virtualbox
---

For a while now, I've been trying to get OSX running inside a VM on my Debian machine. I myself own a Macbook pro and a Mac Mini, but I still would like access on my Debian desktop to a Mac environment, mainly for browser & Xcode testing. I've recently been struggling getting a system going in Virtualbox on Debian Wheezy, and I've just managed to get everything working.

I followed this [article on the MacBreaker site](http://www.macbreaker.com/2014/05/os-x-mavericks-in-virtualbox-with-niresh.html), which explains the process in very good detail. After obtaining an image and following the installation instructions to the letter, I was still left without internet access or any devices in the network settings. I tried reinstalling the entire system several times to try and combat this issue, but to no avail.

If I'd just spent some time and read the comments section, I would have noticed _Rote Adler_'s comment:

> I am very glad to announce that I have this issue fixed by changing the network adapter from Intel PRO/1000 T Server (82543GC) to Intel PRO/1000 MT Server (82545EM)

I shut down the machine, changed the network adapter to the **Intel PRO/1000 MT Server (82545EM)** adapter and booted up. I instantly had working internet. Below is a screenshot of my network settings in Virtualbox:

![OSX Mavericks network setup](http://perrymitchell.net/wp-content/uploads/2014/10/mavericks_network_setup-300x221.png)

My recommendation, if you're attempting to install Mavericks in a VM, is to follow the MacBreaker instructions and then update the network adapter like I've mentioned here.

redpajama_set_name: RedPajamaGithub


text:
'use strict';
var client = require('cheerio-httpcli');
var parser = require('../../../js/tdsystem/year-parser');
var util = require('../../../js/swimtrack-util');
var testUrl = 'http://www.tdsystem.co.jp/i2015.htm';
describe('Test 2015 top page', function() {
  it('should find a right meet and venue from a given meet name', function(done) {
    client.fetch(testUrl, function(err, $, res) {
      let parseResult = parser.parsePage(2015, $);
      let meets = parseResult.meets;
      expect(meets.length).toEqual(198);

      let meetFound = false;
      for (let i = 0; i < meets.length; i++) {
        let meet = meets[i];
        if (meet.name === '中部学生選手権水泳競技大会') {
          meetFound = true;
          expect(meet.days).toContain('2015-07-04');
          expect(meet.days).toContain('2015-07-05');
          expect(meet.venue.city).toEqual('愛知');
          expect(meet.venue.name).toEqual('日本ガイシアリーナ');
          expect(meet.venue.course).toEqual('長水路');
          break;
        }
      }
      expect(meetFound).toEqual(true);
      done();
    });
  });
});


text:
export function smartPosition(options: {
  target: HTMLElement,
  container: HTMLElement,
},
  type: 'horizontal' | 'vertical' = 'vertical'
) {
  switch (type) {
    case 'horizontal':
    horizontalSmartPosition(options);
    break;
    case 'vertical':
    default:
    verticalSmartPosition(options);
    break;
  }
}

function verticalSmartPosition(options: {
  target: HTMLElement,
  container: HTMLElement,
}) {
  const targetRect = options.target.getBoundingClientRect();
  const bodyRect = document.body.getBoundingClientRect();
  options.container.style.visibility = 'hidden';

  // do that after, otherwise it can change the bounding client rect of the target
  document.body.appendChild(options.container);

  const y = targetRect.top;
  const centerYBody = bodyRect.height / 2;
  if (y > centerYBody) {
    options.container.style.top = (targetRect.top - options.container.offsetHeight - 1) + 'px';
    options.container.classList.add('iw-tooltip-container--top');
  } else {
    options.container.style.top = (1 + targetRect.bottom) + 'px';
    options.container.classList.add('iw-tooltip-container--bottom');
  }

  const containerWidth = options.container.offsetWidth;
  const idealLeft = targetRect.left + targetRect.width / 2  - containerWidth / 2;
  const maxLeft = bodyRect.width - containerWidth;
  options.container.style.left = Math.min(maxLeft, idealLeft) + 'px';
  options.container.style.visibility = 'visible';
}

function horizontalSmartPosition(options: {
  target: HTMLElement,
  container: HTMLElement,
}) {
  const targetRect = options.target.getBoundingClientRect();
  const bodyRect = document.body.getBoundingClientRect();
  options.container.style.visibility = 'hidden';

  // do that after, otherwise it can change the bounding client rect of the target
  document.body.appendChild(options.container);

  const x = targetRect.left;
  const centerXBody = bodyRect.width / 2;
  if (x > centerXBody) {
    options.container.style.left = (targetRect.left - options.container.offsetWidth - 1) + 'px';
    options.container.classList.add('iw-tooltip-container--left');
  } else {
    options.container.style.left = (1 + targetRect.right) + 'px';
    options.container.classList.add('iw-tooltip-container--right');
  }

  const containerHeight = options.container.offsetHeight;
  const idealTop = targetRect.top + targetRect.height / 2  - containerHeight / 2;
  const maxTop = bodyRect.height - containerHeight;
  options.container.style.top = Math.min(maxTop, idealTop) + 'px';
  options.container.style.visibility = 'visible';
}


text:
package com.ibatis.sqlmap;

import testdomain.Account;

import java.sql.SQLException;

public class ParameterMapTest extends BaseSqlMapTest {

  // SETUP & TEARDOWN

  protected void setUp() throws Exception {
    initSqlMap("com/ibatis/sqlmap/maps/SqlMapConfig.xml", null);
    initScript("scripts/account-init.sql");
  }

  protected void tearDown() throws Exception {
  }

  // PARAMETER MAP FEATURE TESTS

  public void testNullValueReplacementMap() throws SQLException {
    Account account = newAccount6();

    sqlMap.update("insertAccountViaParameterMap", account);

    account = (Account) sqlMap.queryForObject("getAccountNullableEmail", new Integer(6));

    assertAccount6(account);
  }

  public void testNullValueReplacementInline() throws SQLException {
    Account account = newAccount6();

    sqlMap.update("insertAccountViaInlineParameters", account);

    account = (Account) sqlMap.queryForObject("getAccountNullableEmail", new Integer(6));

    assertAccount6(account);
  }

  public void testNullValueReplacementInlineWithDynamic() throws SQLException {
    Account account = newAccount6();

    account.setId(0);

    Exception expected = null;
    try {
      sqlMap.update("insertAccountViaInlineParametersWithDynamic", account);
    } catch (SQLException e) {
      expected = e;
    }

    account = (Account) sqlMap.queryForObject("getAccountNullableEmail", new Integer(0));

    assertNotNull(expected);
    assertTrue(expected.getMessage().indexOf("Try to insert null into a non-nullable column: column: ACC_ID table: ACCOUNT in statement") > -1);
    assertNull(account);
  }

  public void testSpecifiedType() throws SQLException {
    Account account = newAccount6();
    account.setEmailAddress(null);

    sqlMap.update("insertAccountNullableEmail", account);

    account = (Account) sqlMap.queryForObject("getAccountNullableEmail", new Integer(6));

    assertAccount6(account);
  }

  public void testUnknownParameterClass() throws SQLException {
    Account account = newAccount6();
    account.setEmailAddress(null);

    sqlMap.update("insertAccountUknownParameterClass", account);

    account = (Account) sqlMap.queryForObject("getAccountNullableEmail", new Integer(6));

    assertAccount6(account);
  }

  public void testNullParameter() throws SQLException {

    Account account = (Account)sqlMap.queryForObject("getAccountNullParameter", null);

    assertNull(account);
  }

}


text:
/* hmmfs.c - multiple-hit Smith-Waterman alignment of HMM's to sequences
 * SRE, Fri Jul 22 13:25:22 1994
 *
 * modified from hmmsw.c
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>

#ifdef NEED_GETOPTH
#include <getopt.h>
#endif

#include "states.h"

#include "squid.h"
#include "externs.h"
#include "version.h"

#ifdef MEMDEBUG
#include "dbmalloc.h"
#endif

char Alphabet[MAXABET];		/* ACGT, for instance     */
int  Alphabet_size;		/* 4 or 20                */
int  Alphabet_type;		/* kDNA, kRNA, or kAmino  */

static int fragmatch(struct shmm_s *shmm, char *seq, int L, int i, int j, float score);

static SQINFO sqinfo;
static int    is_revcomp;
static int    fancy_output;
static int    small_memory;

#define OPTIONS "chqr:t:FS"

static char usage[] = "\
Usage: hmmfs [-options] <hmmfile> <dbfile>\n\
   where available options are:\n\
    -c          : search complementary strand too (DNA only)\n\
    -h          : print short usage and version info\n\
    -q          : quiet - suppress verbose header info\n\
    -r <rfile>  : read random model from <rfile>\n\
    -t <thresh> : only report matches above a score of <cutoff>\n\
    -F          : fancy BLAST-style alignment output of matches\n";

static char banner[] = "\
hmmfs - multiple-hit Smith-Waterman local searching of a sequence database\n\
        for matches to a hidden Markov model";

int
main(int argc, char **argv)
{
  struct hmm_struc *hmm;        /* hmm model to search with                 */
  struct shmm_s    *shmm;       /* integer log-odds form model              */
  char        *seqfile;         /* name of database seq file to read        */
  int          format;		/* format of seqfile (i.e. kPearson)        */
  char        *hmmfile;         /* name of HMM file to read                 */
  FILE        *hmmfp;           /* opened HMM file                          */
  SQFILE      *dbfp;            /* opened sequence database file            */
  char        *seq;             /* sequence to search against               */
  char        *seq1;            /* prepared sequence for alignment          */
  char        *rev;             /* reverse complement of seq                */
  int          seqlen;
  float        randomseq[MAXABET]; /* random sequence model, freq's         */
  char        *randomfile;

  float        P1;		/* controls expected spacing between hits   */
  float        P2;		/* controls starting at beginning state     */
  float        P3;              /* controls ending from internal states     */

  float        cutoff;		/* cutoff threshold for reporting matches   */
  int          complement_too;  /* option: do complementary strand too      */
  int          be_quiet;	/* option: suppress verbosity (for piping)  */

  int          optchar;		/* option character */
  extern char *optarg;          /* for getopt() */
  extern int   optind;		/* for getopt() */

#ifdef MEMDEBUG
  unsigned long histid1, histid2, orig_size, current_size;
  orig_size = malloc_size(&histid1);
  printf("memory debug ON\n");
#endif

  /***********************************************
   * Parse the command line
   ***********************************************/

  complement_too = FALSE;
  be_quiet       = FALSE;
  cutoff         = 0.0;
  fancy_output   = FALSE;
  small_memory   = FALSE;
  randomfile     = NULL;

  P1 = 1000. / 1001.;
  P2 = 0.5;			/* some tendency to match at start */
  P3 = 1.0;			/* later divided by M - 1 */

  while ((optchar = getopt(argc, argv, OPTIONS)) != -1)
    switch (optchar) {

    case 'c': complement_too = TRUE;                 break;
    case 'q': be_quiet       = TRUE;                 break;
    case 'r': randomfile     = optarg;               break;
    case 't': cutoff         = (float) atof(optarg); break;
    case 'F': fancy_output   = TRUE;                 break;
    case 'S': small_memory   = TRUE;                 break;

    case 'h':
      printf("%s\n   version %s, %s\n\n%s\n", banner, RELEASE, RELEASEDATE, usage);
      exit(0);
    default:
      Die("Unrecognized option: -%c\n%s\n", optchar, usage);
    }

  if (argc - optind != 2) Die("%s\n", usage);
  if (small_memory && fancy_output)
    Die("Small memory (-S) and fancy output (-F) options are incompatible.");

  hmmfile = argv[optind];
  seqfile = argv[optind+1];

  /***********************************************
   * Get the HMM (and sets alphabet)
   ***********************************************/

  if ((hmmfp = fopen(hmmfile, "rb")) == NULL)
    Die("HMM file %s open failed", hmmfile);

  if ((hmm = ReadHMM(hmmfp)) == NULL)
    Die("failed to parse HMM file %s", hmmfile);

  if (fclose(hmmfp) == EOF)
    Die("file close failed!?\n");

  if (randomfile == NULL) DefaultRandomModel(randomseq);
  else                    ReadRandomModel(randomfile, randomseq);

  P3 /= (float) (hmm->M-1);

  /***********************************************
   * Open database file
   ***********************************************/

  if (! SeqfileFormat(seqfile, &format, "BLASTDB"))
    switch (squid_errno) {
    case SQERR_NOFILE: Die("Sequence file %s could not be opened for reading", seqfile);
    case SQERR_FORMAT:
    default:           Die("Failed to determine format of sequence file %s", seqfile);
    }

  if ((dbfp = SeqfileOpen(seqfile, format, "BLASTDB")) == NULL)
    Die("Failed to open sequence database file %s\n%s\n", seqfile, usage);

  /***********************************************
   * ready to start; print banner information
   ***********************************************/

  if (! be_quiet)
    {
      printf("%s\n     version %s, %s\n", banner, RELEASE, RELEASEDATE);

      printf(" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
      printf(   "HMM file:                 %s\n", hmmfile);
      printf(   "Sequence database:        %s\n", seqfile);
      printf(   "Search strategy:          multiple-hit Smith-Waterman\n");
      printf(   "Cutoff at score:          %.2f\n", cutoff);
      if (complement_too)
	printf(   "Search complement too:    yes\n");
      if (fancy_output)
	printf(   "Alignment output:         yes\n");
      printf(" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\n");
      printf("Score   seq-f seq-t hmm-f hmm-t Name and description\n");
      printf("-----   ----- ----- ----- ----- --------------------\n");
    }

  /***********************************************
   * Search database, one seq at a time
   ***********************************************/

  shmm = AllocSearchHMM(hmm->M);
  MakeSearchHMM(hmm, randomseq, shmm);

#ifdef EXTREME_DEBUG
  PrintSearchHMM(stdout, shmm);
#endif /* EXTREME_DEBUG */

  while (ReadSeq(dbfp, format, &seq, &sqinfo))
    {
      is_revcomp = FALSE;
      s2upper(seq);
      PrepareSequence(seq, &seq1, &seqlen);
				/* FALSE flag sets multiple-hit behavior */
      if (! FragViterbi(shmm, seq1, seqlen, FALSE, P1,P2,P3, cutoff, fragmatch))
	Die("FragViterbi failed");
      free(seq1);

      /* Do the reverse complement, if asked
       */
      if (complement_too)
	{
	  if ((rev = (char *) malloc ((seqlen+1) * sizeof(char))) == NULL)
	    Die("malloc failed");
	  revcomp(rev, seq);

	  is_revcomp = TRUE;
	  PrepareSequence(rev, &seq1, &seqlen);
	  if (! FragViterbi(shmm, seq1, seqlen, FALSE, P1,P2,P3, cutoff, fragmatch))
	    Die("FragViterbi failed");
	  free(seq1);
	  free(rev);
	}
      FreeSequence(seq, &sqinfo);
    }

  /**************************************************
   * Successful return to invocation environment
   **************************************************/
  FreeHMM(hmm);
  FreeSearchHMM(shmm);
  SeqfileClose(dbfp);

#ifdef MEMDEBUG
  current_size = malloc_size(&histid2);

  if (current_size != orig_size)
    {
      printf("Bad memory, boss.\n");
      malloc_list(2, histid1, histid2);
    }
  else
    fprintf(stderr, "No memory leaks, sir.\n");
#endif

  return (0);
}

/* Function: fragmatch()
 *
 * Purpose:  Score reporting function passed to fragviterbi.c
 *           Prototyped in fragviterbi.c: do not change arguments
 *
 * Args:     shmm  - model, integer log odds form
 *           seq   - prepared sequence 1..L
 *           L     - length of sequence
 *           i     - start point of match (1..L)
 *           j     - end point of match (1..L)
 *           score - score of the match, in bits
 *
 * Return:   1 on success, 0 on failure
 */
static int
fragmatch(struct shmm_s *shmm, char *seq, int L, int i, int j, float score)
{
  struct trace_s *tr;           /* traceback of match             */
  char *ssq;                    /* extracted subseq               */
  char *ssq1;                   /* subseq, prepared for alignment */
  int   matchlen;               /* length of match                */
  int   showfrom, showto;	/* 1..L coords to be printed      */
  int   kstart, kend;		/* start, end on model, 1..M      */
  int   best_i, best_j;         /* best start, end on subseq (should be 1,matchlen) */
  float best_score;            /* score of SW match to subseq    */
  float P1,P2,P3;		/* controlling parameters for SW */

  if (is_revcomp)
    { showfrom = L - i + 1;
      showto   = L - j + 1;
    }
  else
    { showfrom = i;
      showto   = j;
    }

  /* Extract the subsequence that matched, and realign using
   * SWViterbi to get the best match.
   */
  matchlen = j - i + 1;
  if ((ssq = (char *) malloc (sizeof(char) * (matchlen+1))) == NULL)
    Die("malloc failed");
  strncpy(ssq, seq + i, matchlen);
  ssq[matchlen] = '\0';
  PrepareSequence(ssq, &ssq1, &matchlen);
  P1 = (float) L / (float) (L+1);
  P2 = 0.5;
  P3 = 1.0 / (float) (shmm->M-1);

  if (AlignmentTooBig(L, shmm->M))
    {
      WeeViterbi(shmm, ssq1, matchlen, TRUE, P2, P3, &tr, &best_score);
      best_i = 1;
      best_j = matchlen;
      kstart = tr->nodeidx[1];
      kend   = tr->nodeidx[tr->tlen-2];
    }
  else
    if (! SWViterbi(shmm, ssq1, matchlen, P1,P2,P3, TRUE,
		    &best_i, &best_j, &kstart, &kend,
		    &best_score, &tr))
      Die("SWViterbi() failed");

  if (best_i != 1 || best_j != matchlen)
    Warn("So much for that idea. new i,j = %d,%d\n", best_i, best_j);

  /* Print the hit
   */
  printf("%-6.2f  %5d %5d %5d %5d %s %s\n",
	 score, showfrom, showto, kstart, kend, sqinfo.name,
	 (sqinfo.flags & SQINFO_DESC) ? sqinfo.desc : "");
  fflush(stdout);

  if (fancy_output)		/* print alignment */
    PrintFancyTrace(stdout, shmm, tr, seq+1, sqinfo.name, i-1);

  free(ssq);
  free(ssq1);
  FreeTrace(tr);
  return 1;
}


text:
"""
Converter methods.

.. currentmodule:: curious.commands.converters
"""
from typing import Any, List

import typing_inspect

from curious.commands.exc import ConversionFailedError
from curious.dataclasses.channel import Channel
from curious.dataclasses.member import Member
from curious.dataclasses.role import Role

def convert_member(ann, ctx, arg: str) -> Member:
    """
    Converts an argument into a Member.
    """
    member_id = None
    if arg.startswith("<@") and arg.endswith(">"):
        id = arg[2:-1]
        if id[0] == "!":  # strip nicknames
            id = id[1:]

        try:
            member_id = int(id)
        except ValueError:
            raise ConversionFailedError(ctx, arg, Member, "Invalid member ID")
    elif all(i.isdigit() for i in arg):
        member_id = int(arg)

    if member_id is not None:
        member = ctx.guild.members.get(member_id)
    else:
        member = ctx.guild.search_for_member(full_name=arg)

    if member is None:
        raise ConversionFailedError(ctx, arg, Member, "Could not find Member")

    return member

def convert_channel(ann, ctx, arg: str) -> Channel:
    """
    Converts an argument into a Channel.
    """
    channel_id = None
    if arg.startswith("<#") and arg.endswith(">"):
        try:
            channel_id = int(arg[2:-1])
        except ValueError:
            raise ConversionFailedError(ctx, arg, Channel, "Invalid channel ID")
    elif all(i.isdigit() for i in arg):
        channel_id = int(arg)

    if channel_id is not None:
        channel = ctx.guild.channels.get(channel_id)
    else:
        channel = next(filter(lambda c: c.name == arg, ctx.guild.channels.values()), None)

    if channel is None:
        raise ConversionFailedError(ctx, arg, Channel, "Could not find channel")

    return channel

def convert_role(ann, ctx, arg: str) -> Role:
    """
    Converts an argument into a :class:`.Role`.
    """
    role_id = None
    if arg.startswith("<@&") and arg.endswith(">"):
        try:
            role_id = int(arg[3:-1])
        except ValueError:
            raise ConversionFailedError(ctx, arg, Role, "Invalid role ID")
    elif all(i.isdigit() for i in arg):
        role_id = int(arg)

    if role_id is not None:
        role = ctx.guild.roles.get(role_id)
    else:
        role = next(filter(lambda c: c.name == arg, ctx.guild.roles.values()), None)

    if role is None:
        raise ConversionFailedError(ctx, arg, Role, "Could not find role")

    return role

def convert_int(ann, ctx, arg: str) -> int:
    """
    Converts an argument into an integer.
    """
    try:
        return int(arg, 0)
    except ValueError as e:
        raise ConversionFailedError(ctx, arg, int, "Invalid integer") from e

def convert_float(ann, ctx, arg: str) -> float:
    """
    Converts an argument into a float.
    """
    try:
        return float(arg)
    except ValueError as e:
        raise ConversionFailedError(ctx, arg, float, "Invalid float") from e

def convert_list(ann, ctx, arg: str) -> List[Any]:
    """
    Converts a :class:`typing.List`.
    """
    internal = typing_inspect.get_args(ann)[0]
    converter = ctx._lookup_converter(internal)
    sp = arg.split(" ")
    results = []

    for arg in sp:
        results.append(converter(internal, ctx, arg))

    return results

def convert_union(ann, ctx, arg: str) -> Any:
    """
    Converts a :class:`typing.Union`.

    This works by finding every type defined in the union, and trying each one until one returns
    a non-error.
    """
    subtypes = typing_inspect.get_args(ann, evaluate=True)
    for subtype in subtypes:
        try:
            converter = ctx._lookup_converter(subtype)
            return converter(ann, ctx, arg)
        except ConversionFailedError:
            continue

    raise ConversionFailedError(ctx, arg, ann, message="Failed to convert to any of these types")


text:
package org.smartrplace.sim.simple.devices.sensordevice;

import java.util.Iterator;
import java.util.List;

import org.ogema.core.application.ApplicationManager;
import org.ogema.core.application.Timer;
import org.ogema.core.application.TimerListener;
import org.ogema.core.model.Resource;
import org.ogema.core.model.units.TemperatureResource;
import org.ogema.core.resourcemanager.ResourceAlreadyExistsException;
import org.ogema.core.resourcemanager.ResourceValueListener;
import org.ogema.core.resourcemanager.Transaction;
import org.ogema.model.devices.sensoractordevices.SensorDevice;
import org.ogema.tools.simulation.service.api.model.SimulatedQuantity;
import org.ogema.tools.simulation.service.api.model.SimulationConfiguration;
import org.ogema.tools.simulation.service.apiplus.SimulationBase;
import org.smartrplace.sim.simple.devices.motiondetector.MotionDetectorPattern;
import org.smartrplace.sim.simple.devices.sensordevice.quantities.BrightnessValue;
import org.smartrplace.sim.simple.devices.sensordevice.quantities.CO2Value;
import org.smartrplace.sim.simple.devices.sensordevice.quantities.HumidityValue;
import org.smartrplace.sim.simple.devices.sensordevice.quantities.TemperatureValue;

/**
 */
public class SensorDeviceSimulation extends SimulationBase<SensorDeviceConfigurationPattern, SensorDevicePattern>
		implements ResourceValueListener<TemperatureResource>{

	private static final long TEMPSENS_UPDATE_INTERVAL = 4000;
	static final String PROVIDER_ID = "Basic sensor devices simulation";
	private static final String BASE_RESOURCE_SIM_OBJECTS = "basicSimulatedTemperatureSensors";

	public SensorDeviceSimulation(ApplicationManager am) {
		super(am, SensorDevicePattern.class,true, SensorDeviceConfigurationPattern.class);
	}

	@Override
	public String getProviderId() {
		return PROVIDER_ID;
	}

	@Override
	public Class<? extends Resource> getSimulatedType() {
		return SensorDevice.class;
	}

	/** createSimulatedObject is called by the simulation framework when a new resource is created via the
	 * simulation GUI or a similar mechanism and the resource shall be simulation by this provider.
	 * TODO: Should we also create an entry in the SimulationConfigurationModel list automatically?
	 * TODO: provide this in the framework
	 */
	// TODO check that deviceId is a valid resource name(?) Or do that in framework?
	@Override
	public SensorDevice createSimulatedObject(String deviceId) {
		SensorDevicePattern pattern = getTargetPattern(deviceId);
		if (pattern == null) {
			try {
				// currently, the simulation GUI requires top level resources
//				@SuppressWarnings("unchecked")
//				ResourceList<TemperatureSensor> base = am.getResourceManagement().createResource(BASE_RESOURCE_SIM_OBJECTS, ResourceList.class);
//				base.setElementType(TemperatureSensor.class);
//				tempSens = rpa.addDecorator(base,deviceId, TemperatureSensorPattern.class);
				if (deviceId.indexOf('/') > 0) {
					final int i = deviceId.lastIndexOf('/');
					Resource parent = appManager.getResourceAccess().getResource(deviceId.substring(0, i));
					if (parent == null || !parent.exists())
						throw new IllegalArgumentException("Specified parent resource " +deviceId.substring(0, i) + " does not exist");
					pattern = resourcePatternAccess.addDecorator(parent, deviceId.substring(i+1), SensorDevicePattern.class);
				}
				else {
					pattern = resourcePatternAccess.createResource(deviceId, SensorDevicePattern.class);
				}
				pattern.temperature.setCelsius(20F);
//				if (tempSens == null) return null;
				pattern.model.name().create();
//				switchBox.simulationProvider.setValue(PROVIDER_ID);
				pattern.model.name().setValue("Simulated sensor device" + (simulatedDevices.isEmpty() ? "" : " " + simulatedDevices.size()));
//				Room room = appManager.getResourceManagement().createResource(SimpleDevicesApp.ROOM_PATH, Room.class);
//				room.activate(false);
//				pattern.model.location().room().setAsReference(room);
				logger.info("New sensor device created "+  pattern.model.name());
				super.addConfigResource(pattern, TEMPSENS_UPDATE_INTERVAL); // activates all resources
//				switchBox.model.activate(true);  // done in addConfigResource already
			} catch (ResourceAlreadyExistsException e) {
				return null;
			}
		} else {
			// FIXME should we call initSimulation explicitly here? Since non-persistent resource values must be reinitialized...
			// or is this called anyway, even on unclean start... presumably not ->??
			patternAvailable(getSimPattern(deviceId));
		}
		return pattern.model;
	}

	@Override
	public void buildConfigurations(SensorDevicePattern pattern, List<SimulationConfiguration> cfgs,SensorDeviceConfigurationPattern simPattern) {
		cfgs.add(new LowerLimitConfiguration(simPattern));
		cfgs.add(new UpperLimitConfiguration(simPattern));
	}

	@Override
	public void buildQuantities(SensorDevicePattern pattern, List<SimulatedQuantity> quantities,SensorDeviceConfigurationPattern simPattern) {
		quantities.add(new TemperatureValue(pattern));
		quantities.add(new HumidityValue(pattern));
		quantities.add(new CO2Value(pattern));
		quantities.add(new BrightnessValue(pattern));
	}

	@Override
	public String getDescription() {
		return "Simulated temperature sensor, humidity sensor, CO2 sensor and brightness sensor";
	}

	/** The targetPattern points to the simulated resource (typically a device). The
	 * configPattern points to the simulation configuration resource indicating the
	 * simulation time interval etc.
	 * @param timeStep time since last simulation step in milliseconds
	 */
	@Override
	public void simTimerElapsed(SensorDevicePattern targetPattern, SensorDeviceConfigurationPattern configPattern, Timer t, long timeStep) {
		// temperature
		float lower = configPattern.lowerTemperature.getValue();
		float upper = configPattern.upperTemperature.getValue();
		if (upper < lower) {
			logger.warn("Inconsistent setting:  lower limit > upper limit: " + lower + ", " + upper + "; applying defaults");
			upper = 38 - 273.15F;
			lower = 10 - 273.15F;
			Transaction trans = appManager.getResourceAccess().createTransaction();
			trans.setFloat(configPattern.lowerTemperature, lower);
			trans.setFloat(configPattern.upperTemperature, upper);
			trans.write();
			return; // changing the limits will cause another callback
		}
		float currentValue = targetPattern.temperature.getValue();
		if (lower > currentValue)
			currentValue  = lower;
		if (upper < currentValue)
			currentValue = upper;
		float diff = upper-lower;
		currentValue = lower + (float) (Math.random() * diff); // FIXME smoother curve
		targetPattern.temperature.setValue(currentValue);
		if (logger.isTraceEnabled())
			logger.trace(" ~ new simulated temperature value " + targetPattern.temperature.getCelsius() +
				" in range [" + configPattern.lowerTemperature.getCelsius() + ", " + configPattern.upperTemperature.getCelsius() + "]");

		// humidity
		targetPattern.humidity.setValue((float) Math.random());
		// co2 sensor
		targetPattern.co2concentration.setValue(300 + (float) (Math.random() * 5000)); // TODO scale configurable (ppm)
		// brightness
		targetPattern.brightness.setValue((float) (Math.random() * 150000)); // TODO scale configurable (lux)
	}

	// TODO test whether deactivation and reactivation works
	// TODO ensure this is called before patterns are activated(?) ... probably not the case
	// TODO do we need to register a value listener for the interval?
	@Override
	protected void initSimulation(SensorDevicePattern targetPattern,SensorDeviceConfigurationPattern configPattern) {
		resourcePatternAccess.createOptionalResourceFields(targetPattern, SensorDevicePattern.class, false);
		targetPattern.temperature.setCelsius(20F);
		targetPattern.batteryStatus.setValue(0.95F);
		configPattern.lowerTemperature.setCelsius(10);
		configPattern.upperTemperature.setCelsius(38);
		configPattern.lowerTemperature.addValueListener(this, true);
		configPattern.upperTemperature.addValueListener(this,true);
		resourcePatternAccess.activatePattern(targetPattern); // activates also the optional elements
	}

	@Override
	protected void removeSimulation(SensorDevicePattern targetPattern,SensorDeviceConfigurationPattern configPattern) {
		configPattern.lowerTemperature.removeValueListener(this);
		configPattern.upperTemperature.removeValueListener(this);
	}

	// TODO
	@Override
	public void resourceChanged(TemperatureResource resource) {
		// no explicit action, simply trigger a simTimerElapsed action
		// we must trigger a simTimerElapsed here!
		SensorDeviceConfigurationPattern configPattern = new SensorDeviceConfigurationPattern(resource.getParent().getParent());
		Timer timer = getTimer(configPattern);
		long intv = timer.getTimingInterval();
		timer.stop();
		Iterator<TimerListener> listeners = timer.getListeners().iterator();
		while (listeners.hasNext())
			listeners.next().timerElapsed(timer);
		timer.setTimingInterval(intv);
		timer.resume();
	}

}


text:
package org.apache.camel.component.huaweicloud.smn;

import java.util.HashMap;
import java.util.Map;

import org.apache.camel.BindToRegistry;
import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.huaweicloud.common.models.ServiceKeys;
import org.apache.camel.component.huaweicloud.smn.constants.SmnProperties;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.junit5.CamelTestSupport;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;

public class PublishTemplatedMessageWithCustomEndpointFunctionalTest extends CamelTestSupport {
    private static final Logger LOGGER = LoggerFactory.getLogger(PublishTemplatedMessageTest.class.getName());

    private static final String ACCESS_KEY = "replace_this_with_access_key";
    private static final String SECRET_KEY = "replace_this_with_secret_key";
    private static final String TEMPLATE_NAME = "replace_this_with_template_name";
    private static final String NOTIFICATION_SUBJECT = "sample notification subjectline";
    private static final String TOPIC_NAME = "replace_this_with_topic_name";
    private static final String PROJECT_ID = "replace_this_with_project_id";
    private static final String REGION = "replace_this_with_region";
    private static final String ENDPOINT = "replace_this_with_endpoint";

    @BindToRegistry("serviceKeys")
    ServiceKeys serviceKeys
            = new ServiceKeys(ACCESS_KEY, SECRET_KEY);

    protected RouteBuilder createRouteBuilder() throws Exception {
        // populating tag values. user has to adjust the map entries according to the structure of their respective templates
        Map<String, String> tags = new HashMap<>();

        // create a map of your placeholder variables
        /*Example :
        tags.put("name", "reji");
        tags.put("phone", "1234567890");
        */
        return new RouteBuilder() {
            public void configure() {
                from("direct:publish_templated_message")
                        .setProperty(SmnProperties.NOTIFICATION_SUBJECT, constant(NOTIFICATION_SUBJECT))
                        .setProperty(SmnProperties.NOTIFICATION_TOPIC_NAME, constant(TOPIC_NAME))
                        .setProperty(SmnProperties.NOTIFICATION_TTL, constant(60))
                        .setProperty(SmnProperties.TEMPLATE_TAGS, constant(tags))
                        .setProperty(SmnProperties.TEMPLATE_NAME, constant(TEMPLATE_NAME))
                        .to("hwcloud-smn:publishMessageService?serviceKeys=#serviceKeys&operation=publishAsTemplatedMessage"
                            + "&projectId=" + PROJECT_ID
                            + "&region=" + REGION
                            + "&endpoint=" + ENDPOINT
                            + "&ignoreSslVerification=true")
                        .log("templated notification sent")
                        .to("mock:publish_templated_message_result");
            }
        };
    }

    /**
     * following test cases should be manually enabled to perform test against the actual huaweicloud simple
     * notification server with real user credentials. To perform this test, manually comment out the @Disabled
     * annotation and enter relevant service parameters in the placeholders above (static variables of this test class)
     *
     * @throws Exception
     */
    @Test
    @Disabled("Manually enable this once you configure service parameters in placeholders above")
    public void testTemplatedNotificationSend() throws Exception {
        MockEndpoint mock = getMockEndpoint("mock:publish_templated_message_result");
        mock.expectedMinimumMessageCount(1);
        template.sendBody("direct:publish_templated_message", null);
        Exchange responseExchange = mock.getExchanges().get(0);

        mock.assertIsSatisfied();

        assertNotNull(responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID));
        assertNotNull(responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID));
        assertTrue(responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID).toString().length() > 0);
        assertTrue(responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID).toString().length() > 0);
    }

}


text:
import { Injectable } from '@angular/core';
import { Headers, Http, Response } from '@angular/http';
import 'rxjs/add/operator/toPromise';

@Injectable()
export class SolrAutocompleteService {

  constructor(private http: Http) { }

  search(term: string, config: any): Promise<any[]> {
    let url = `${config.searchUrl}?${config.additionalParams}&${config.group}&fl=${config.fields}&sort=${config.sort}&group.limit=${config.groupLimit}&q=value:${term}*~10`
    return this.http
               .get(url)
               .toPromise()
               .then(response => {
                 return response.json().grouped.category.groups
                })
               .catch( err => console.log('error'));
   }

   searchMore(term: string, fqVal: string, config: any): Promise<any[]> {
    let url = `${config.searchUrl}?${config.additionalParams}&${config.group}&fl=${config.fields}&sort=${config.sort}&group.limit=-1&q=value:${term}*~10&fq=var_name:${fqVal}`
    return this.http
               .get(url)
               .toPromise()
               .then(response => {
                 return response.json().grouped.category.groups as any[]
                })
               .catch( err => console.log('error'));
   }

}


text:
#include "caf/config.hpp"

// exclude this suite; the profiled coordinator currently depends on POSIX
#ifndef CAF_WINDOWS

#define CAF_SUITE profiled_coordinator
#include "caf/test/unit_test.hpp"

#include "caf/config.hpp"
#include "caf/shutdown.hpp"

#include "caf/set_scheduler.hpp"
#include "caf/scheduler/profiled_coordinator.hpp"

using namespace caf;

CAF_TEST(test_profiled_coordinator) {
  set_scheduler(new scheduler::profiled_coordinator<>{"/dev/null"});
  shutdown();
}

#endif // CAF_WINDOWS


text:
package org.spongepowered.api.event.cause.entity;

import org.spongepowered.api.event.entity.SpawnEntityEvent;
import org.spongepowered.api.registry.DefaultedRegistryValue;
import org.spongepowered.api.util.annotation.CatalogedBy;

/**
 * Represents a type of "spawning" for a {@link SpawnEntityEvent}.
 */
@CatalogedBy(SpawnTypes.class)
public interface SpawnType extends DefaultedRegistryValue {

}


text:
Monopoly
========

Repo for Monopoly Project

How do you make a dead baby float?
Take your foot off its head.

I chuckle as I take off my fake breasts and put my dick in your ass as I reveal that I am actually Gary Oak, Pokemon Master

I want to use lick on your Cli-Tauros.

Josh what's your pokedex at?


text: Versão do Boleto .Net Adaptada para as necessidades do sistema sislotte.


text:
// Copyright 2007-2011 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// Licensed 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
//
// Unless required by applicable law or agreed to in writing, software distributed
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
namespace MassTransit.Testing.ScenarioBuilders
{
	using System;
	using BusConfigurators;
	using SubscriptionConfigurators;

	public interface BusScenarioBuilder :
		EndpointScenarioBuilder<BusTestScenario>
	{
		/// <summary>
		/// Configure any bus-specific items as part of building the test scenario
		/// </summary>
		/// <param name="configureCallback"></param>
		void ConfigureBus(Action<ServiceBusConfigurator> configureCallback);

		/// <summary>
		/// Configure the subscriptions for a test using this scenario.
		/// </summary>
		/// <param name="configureCallback"></param>
		void ConfigureSubscriptions(Action<SubscriptionBusServiceConfigurator> configureCallback);
	}
}


text:
<?php

namespace Acme\FrontendBundle\Controller;

use Acme\CoreBundle\Controller\CustomerController;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Acme\BackendBundle\Entity\Constant;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

class ReportController extends CustomerController
{

    /**
     * @return Response
     * @Route("/report", name="_report")
     */
    public function reportListAction()
    {
        $request = $this->getRequest();
        $session = $request->getSession();
        $objORM = $this->getDoctrine()->getManager();
        $intTermNo = $session->get('last_term_no');
        $arrFMList = $objORM->getRepository('AcmeBackendBundle:Member')
            ->getArrFMList(20, 'timeCreateTime', 'DESC');
        $arrFrontendInfo = $objORM->getRepository('AcmeFrontendBundle:OtherInfo')
            ->getArrFrontendInfo();
        $intLastTermNo = $session->get('last_term_no');
        $arrCoopList = $objORM->getRepository('AcmeFrontendBundle:Coop')
            ->getArrCoopList(7);
        if ($request->getMethod() == 'GET'
            && $request->query->get('zone') != null && $request->query->get('term-no') != null) {
            $where = $this->_getStrSearchStr($request->query->get('search') );
            $arrLastRankSong = $objORM->getRepository('AcmeBackendBundle:Rank')
                ->getArrNewestRankList($request->query->get('zone'), 999, $request->query->get('term-no'), $where);
            return $this->render('AcmeFrontendBundle:Report:list.html.twig',
                array(
                    'otherinfo' => $arrFrontendInfo,
                    'fms' => $arrFMList,
                    'list' => $arrLastRankSong,
                    'current_term_no' => $intLastTermNo,
                    'search_term_no' => $request->query->get('term-no'),
                    'coops' => $arrCoopList,
                ));
        }
        //if($strZone == 'prc')
        $arrLastRankSong = $objORM->getRepository('AcmeBackendBundle:Rank')
            ->getArrNewestRankList(Constant::PRCZONE, 999, $intTermNo);
        //if($strZone == 'hktw')
        //    $arrLastRankSong = $objORM->getRepository('AcmeBackendBundle:Rank')
        //        ->getArrNewestRankList(Constant::HKTWZONE, 999, $intTermNo);
        $response =  $this->render('AcmeFrontendBundle:Report:list.html.twig',
            array(
                'otherinfo' => $arrFrontendInfo,
                'fms' => $arrFMList,
                'list' => $arrLastRankSong,
                'current_term_no' => $intLastTermNo,
                'search_term_no' => $intTermNo,
                'coops' => $arrCoopList,
            ));
        $response->setETag(md5($response->getContent()));
        $response->setPublic(); // make sure the response is public/cacheable
        $response->isNotModified($request);

        return $response;
    }

    /**
     * @param $intTermNo
     * @param $intZone
     * @param $intSongId
     * @return Response
     * @Route("/report/details/{intTermNo}/{intZone}/{intSongId}", name="_report_details")
     */
    public function reportDetailsAction($intTermNo, $intZone, $intSongId)
    {
        $request = $this->getRequest();
        $objORM = $this->getDoctrine()->getManager();
        $arrFMList = $objORM->getRepository('AcmeBackendBundle:Member')
            ->getArrFMList(20, 'timeCreateTime', 'DESC');
        $arrFrontendInfo = $objORM->getRepository('AcmeFrontendBundle:OtherInfo')
            ->getArrFrontendInfo();
        $arrVoteDetails = $objORM->getRepository('AcmeBackendBundle:Votelog')
            ->getArrVoteDetails($intTermNo, $intZone, $intSongId);

        $arrCoopList = $objORM->getRepository('AcmeFrontendBundle:Coop')
            ->getArrCoopList(7);
        $response = $this->render('AcmeFrontendBundle:Report:details.html.twig',
            array(
                'otherinfo' => $arrFrontendInfo,
                'fms' => $arrFMList,
                'list' => $arrVoteDetails,
                'coops' => $arrCoopList,
            ));
        $response->setETag(md5($response->getContent()));
        $response->setPublic(); // make sure the response is public/cacheable
        $response->isNotModified($request);

        return $response;
    }

    /**
     * @return Response
     * @Route("/report/details", name="_report_search")
     */
    public function reportDetailsSearchAction()
    {
        $request = $this->getRequest();
        $objORM = $this->getDoctrine()->getManager();
        $arrFMList = $objORM->getRepository('AcmeBackendBundle:Member')
            ->getArrFMList(20, 'timeCreateTime', 'DESC');
        $arrFrontendInfo = $objORM->getRepository('AcmeFrontendBundle:OtherInfo')
            ->getArrFrontendInfo();
        $arrCoopList = $objORM->getRepository('AcmeFrontendBundle:Coop')
            ->getArrCoopList(7);
        $arrVoteDetails = null;
        if($request->query->get('title') != null && $request->query->get('term-no') != null
            && $request->query->get('zone')) {
            $intTermNo = $request->query->get('term-no');
            $intSongInfo = $request->query->get('title');
            $intZone = $request->query->get('zone');
            $arrVoteDetails = $objORM->getRepository('AcmeBackendBundle:Votelog')
                ->getArrVoteDetailsSearch($intTermNo, $intZone, $intSongInfo);
        }

        $response = $this->render('AcmeFrontendBundle:Report:details_search.html.twig',
            array(
                'otherinfo' => $arrFrontendInfo,
                'fms' => $arrFMList,
                'list' => $arrVoteDetails,
                'current_term_no' => $request->getSession()->get('last_term_no'),
                'coops' => $arrCoopList,
            ));
        $response->setETag(md5($response->getContent()));
        $response->setPublic(); // make sure the response is public/cacheable
        $response->isNotModified($request);

        return $response;
    }

    private function _getStrSearchStr($search)
    {
        if($search != null)
            return " AND (s.strTitle like '%{$search}%' or s.arrStrArtistName like '%{$search}%') ";
        else
            return "";
    }
}


text:
==============================================================
fluxcompensator.database.missions.wise
==============================================================

   .. rubric:: Mission infomation
   .. autosummary::

       ~fluxcompensator.database.missions.wise.diameter

   .. rubric:: Filter objects
   .. autosummary::

       ~fluxcompensator.database.missions.wise.WISE1_FILTER
	   ~fluxcompensator.database.missions.wise.WISE2_FILTER
	   ~fluxcompensator.database.missions.wise.WISE3_FILTER
	   ~fluxcompensator.database.missions.wise.WISE4_FILTER

   .. rubric:: OneFilter objects
   .. autosummary::

       ~fluxcompensator.database.missions.wise.WISE1_FILTER_PLOT
	   ~fluxcompensator.database.missions.wise.WISE2_FILTER_PLOT
	   ~fluxcompensator.database.missions.wise.WISE3_FILTER_PLOT
	   ~fluxcompensator.database.missions.wise.WISE4_FILTER_PLOT

   .. rubric:: Zero-point magnitudes
   .. autosummary::

       ~fluxcompensator.database.missions.wise.WISE1_ZERO
	   ~fluxcompensator.database.missions.wise.WISE2_ZERO
	   ~fluxcompensator.database.missions.wise.WISE3_ZERO
	   ~fluxcompensator.database.missions.wise.WISE4_ZERO


text:
MLS.productDetail = (function() {

var pub = {
    init : function() {

        this.pdpDetailTabs();
        this.showMoreDevices();
        this.pdpFeaturesShowMore();
        this.compatibleDropDowns();
        this.compatibleTypeAhead();
        this.mapProductDetailTabs();
        this.phpFeaturesGraphicTab();
        this.selectCompatibleProducts();
        this.relatedStoriesSlider();
        MLS.ui.module.trendingLifestyles();
        $jQ("#pdp-size-select, #pdp-color-select, #pdp-add-to-cart-submit, .secondary-add-cart, #anchor-add-to-cart, #scale-device-comparison, #product-add-to-cart").uniform(); // make selects pretty

       var prepSmall = new MLS.productDetail.pdpMobileContent();

        $jQ('.pdp-banner-shipping').each(function(){
            MLS.ui.dropdownDisplay(this);
        });

        $jQ('.pdp-cart-shipping-item').each(function(){
            MLS.ui.dropdownDisplay(this);
        });

        MLS.ui.moreLessBlock();
        MLS.productDetail.moreLessBlockTruncate();
        MLS.productDetail.pdpColorOptions();
        MLS.productDetail.addCartValidation();

        $jQ('#thumbs').flexslider({
            animation: "slide",
            controlNav: false,
            animationLoop: true,
            slideshow: false,
            itemWidth: 45,
            itemMargin: 10,
            asNavFor: '#focus'
        });

        $jQ('#focus').flexslider({
            animation: "slide",
            controlNav: false,
            animationLoop: true,
            slideshow: false,
            sync: "#thumbs"
        });

        $jQ('#zoom-thumbs').flexslider({
            animation: "slide",
            controlNav: false,
            animationLoop: false,
            slideshow: false,
            itemWidth: 45,
            itemMargin: 10,
            asNavFor: '#zoom-focus'
        });

        $jQ('#zoom-focus').flexslider({
            animation: "slide",
            controlNav: false,
            animationLoop: false,
            slideshow: false,
            sync: "#zoom-thumbs"
        });

        $jQ('#pdp-similar-products-module').flexslider({
            animation: 'slide',
            controlsContainer: '#pdp-similar-products-module .slide-nav',
            animationLoop: false,
            controlNav: false,
            directionNav: true,
            slideshow: false,
            animationSpeed: 500,
            itemWidth: 215
        });

        $jQ('#pdp-others-bought-module').flexslider({
            animation: 'slide',
            controlsContainer: '#pdp-others-bought-module .slide-nav',
            animationLoop: false,
            controlNav: false,
            directionNav: true,
            slideshow: false,
            animationSpeed: 500,
            itemWidth: $jQ(window).outerWidth() * 0.85
        });

        if ($jQ(window).width() > 719) {
            $jQ(window).scroll(function() {
                if ($jQ(window).scrollTop() > $jQ('#product-details').offset().top - 60) {
                    $jQ('#btf-anchor').addClass('show-anchor');
                    $jQ('#mls-nav').addClass('fixed-nav');
                }
                else {
                    $jQ('#btf-anchor').removeClass('show-anchor');
                    $jQ('#mls-nav').removeClass('fixed-nav');
                }
            });
        }

        $jQ(window).resize(function () {
            MLS.ui.moreLessBlock();

            if ($jQ(window).width() > 719) {
                $jQ(window).scroll(function() {
                    if ($jQ(window).scrollTop() > $jQ('#product-details').offset().top - 60) {
                        $jQ('#btf-anchor').addClass('show-anchor');
                        $jQ('#mls-nav').addClass('fixed-nav');
                    }
                    else {
                        $jQ('#btf-anchor').removeClass('show-anchor');
                        $jQ('#mls-nav').removeClass('fixed-nav');
                    }
                });
            }
        });

        MLS.productDetail.pdpColorSelect();

        $jQ('#view-scale, #carousel-zoom, #view-360').on('click', function(){
            var which = $jQ(this).attr('id');
            var thisPanel = new MLS.productDetail.createZoomPanel(which);
        });

        $jQ('#view-scale').click(function(){
            $jQ('#toggle-scale').text('Hide Scale').parent().toggleClass('hide-action');
            $jQ('#zoom-thumbs').toggle();
        });

        $jQ('#toggle-scale').on('click', function(){
            // toggle scale content
            $jQ('#zoom-block').find("#zoom-scale-content").toggle();
            $jQ('#zoom-thumbs').toggle();
            $jQ('#zoom-focus').toggleClass('hide-slides');
            //toggle link class and text
            if ($jQ(this).parent().hasClass('hide-action')) {
                $jQ(this).text('View to Scale').parent().removeClass('hide-action');
            } else {
                 $jQ(this).text('Hide Scale').parent().addClass('hide-action');
            }

        });

        $jQ('#pdp-add-to-cart-submit').click(function(){
            $jQ("#pdp-add-to-cart-submit").validate();
            var formValid = $jQ("#pdp-add-to-cart").valid();
            if (formValid == true){
                $jQ('.size-select-box').find('.selector').removeClass('error');
                return false;
            } else {
                $jQ('.size-select-box').find('.selector').addClass('error');
                return false;
            }
        });

        $jQ('#pdp-size-select').change(function(){ // remove select error on choice
            $jQ('.size-select-box').find('.selector').removeClass('error');
            $jQ('.size-select-box').find('label.error').hide();
        });

        $jQ('.pdp-bundle-block .item').click(function(e){ // bundle modal
            e.preventDefault;
            MLS.ui.lightbox(this);
        });

        $jQ('#add-cart-server-error').find('.lightbox-close').click(function(){ // close click
            $jQ('#add-cart-server-error').fadeOut(300); // fade out
        });

        $jQ('.pdp-accordion').find('.acc-control').click(function(){
            MLS.ui.simpleAcc(this);
            setTimeout(function(){
                MLS.ui.moreLessBlock();
            }, 350);
        });

        $jQ('#mobile-similar .acc-control').click(function(){ // initialize flexslider

            $jQ('#mobile-similar #pdp-similar-products-module').flexslider({  // similar products : flexslider install
                animation: 'slide',
                controlsContainer: '#pdp-similar-products-module .slide-nav',
                animationLoop: false,
                controlNav: false,
                directionNav: true,
                slideshow: false,
                animationSpeed: 500,
                itemWidth: 215
            });

        });

        // RELATED STORIES MODULE SEQUENCE

         $jQ('#pdp-related-stories-module').find('li.small-story').each(function(i, el){
             if ( i%2 > 0) {
                var previous = $jQ(this).prev('li.small-story')
                $jQ(this).addClass('adjusted').appendTo(previous);
            }
        });

        $jQ('#pdp-related-stories-module dd a').click(function(){
            var whichClick = $jQ(this).attr('id');
            var whichClickArray = whichClick.split('-');
            whichClick = whichClickArray[2];

            var navs = $jQ(this).parents('section').find('.slide-nav');
            $jQ(navs).hide();
            $jQ(navs).each(function(){
                var whichNav = $jQ(this).attr('id');
                var whichNavArray = whichNav.split('-');
                whichNav = whichNavArray[1];
                if (whichClick == whichNav) {
                    $jQ(this).show();
                    return false;
                }
            });
        });

        $jQ('.product-reveal').click(function(){
            var targetNode = $jQ(this).parent(),
                closeNode = targetNode.find('.close-related');
                targetNode.addClass('reveal');

            targetNode.click(function(){
                targetNode.removeClass('reveal');
            });
        });

    },
    moreLessBlockTruncate : function(){
        $jQ('.pdp-overview-content .more-less-block .two-thirds').truncate(575);
    },
    pdpFeaturesShowMore : function(){
        var featuresContainer = $jQ('.pdp-features-content'),
            showMoreCTA = featuresContainer.find('.more-less-link');
            detailsList = featuresContainer.find('.details-list');

            showMoreCTA.click(function(){
                var currentNode = $jQ(this);
                currentNode.toggleClass('toggle');
                detailsList.toggleClass('toggle');
            });
    },
    mapProductDetailTabs : function(){
        var reviewsBTN = $jQ('#pdp-cart-review-count'),
            compatBTN = $jQ('span.compat-link'),
            tabsParent = $jQ('#product-details');
            var activeTab = function(selector){
                selector.click(function(){
                    var currentNode = $jQ(this),
                    targetTab = tabsParent.find('li').filter(function(){return $jQ(this).data('tabname') == currentNode.data('tabname');}).find('span');
                    targetTab.click();
                    MLS.ui.scrollPgTo(targetTab, 100);
                });
            };
            activeTab(reviewsBTN);
            activeTab(compatBTN);
    },

    ellipsis : function(){
    },

    relatedStoriesSlider : function(){
        var parentSelector = $jQ('#related'),
            targetTabs = parentSelector.find('.tabs-content > li'),
            tabNavigaton = parentSelector.find('.tabs-controller > li');

            tabNavigaton.click(function(e){
                e.preventDefault();
                tabNavigaton.removeClass('active');
                var currentNode = $jQ(this),
                    currentIndex = currentNode.index();
                    currentNode.addClass('active');
                    targetTabs.removeClass('active');
                    targetTabs.eq(currentIndex).addClass('active');
            });

        $jQ('.vzn-slide').flexslider({
            animation: 'slide',
            animationLoop: true,
            controlNav: false,
            directionNav: true,
            slideshow: false,
            animationSpeed: 500,
            itemWidth: 387
        });
    },

    pdpDetailTabs : function() {
        var detailSection = $jQ('#product-details'),
            visualTabs = detailSection.find('.detail-tabs > li'),
            tabContent = detailSection.find('.detail-tabs-accordion > li'),
            mobileTabs = tabContent.find('> span');

            mobileTabs.each(function(){
                var currentScope = $jQ(this),
                    contentTarget = currentScope.parent().find('.tab-wrapper');
                currentScope.click(function(){
                    currentScope.toggleClass('toggle');
                    contentTarget.toggleClass('toggle');
                });
            });

            visualTabs.each(function(){
                var currentScope = $jQ(this);
                currentScope.click(function(){
                    var currentNode = $jQ(this),
                        targetTab = currentNode.data('tabname');

                    visualTabs.removeClass('active');
                    currentScope.addClass('active');
                    tabContent.removeClass('active');
                    tabContent.filter(function(){
                        return $jQ(this).data('tabname') == targetTab;
                    }).addClass('active');
                });
            });
    },

    phpFeaturesGraphicTab : function(){
        var tabContainer = $jQ('.pdp-features-tab-box'),
            visualTabs =  tabContainer.find('#pdp-feature-tabs > dd'),
            tabContent = tabContainer.find('.tabs-content > li');

            visualTabs.each(function(){
                var currentScope = $jQ(this);
                currentScope.click(function(){
                    var currentNode = $jQ(this),
                        targetTab = currentNode.data('lifestyle');

                    visualTabs.removeClass('active');
                    currentScope.addClass('active');

                    tabContent.removeClass('active');
                    tabContent.filter(function(){
                        return $jQ(this).data('lifestyle') == targetTab;
                    }).addClass('active');
                });
            });
    },

    pdpColorOptions : function(){
        var numColors = $jQ('#product-colors').find('.color').length;
        if ( numColors > 6){
            $jQ('.light').addClass('reduced');
            $jQ('.dark').addClass('expanded');
        } else {
            $jQ('.light').removeClass('reduced');
            $jQ('.dark').removeClass('expanded');

            if (numColors > 3){
                $jQ('.size-select-box').addClass('more-than-3');
            }
        }
    },

    pdpColorSelect : function(){
        $jQ('#product-colors .color').on('click', function () {
            if($jQ(this).hasClass('out-of-stock')) {
                return false;
            }
            var colorTitle = $jQ(this).find('a').attr('title');
            $jQ('#product-colors .color').removeClass('active');
            $jQ(this).addClass('active');
            $jQ('#pdp-current-color').text(colorTitle);
            $jQ('#pdp-color-select').val([]);
            $jQ('#pdp-color-select').find('option[value=' + colorTitle + ']').prop('selected', 'selected');
            var choice =  $jQ('#pdp-color-select option:selected').text();
        });
    },

    pdpMobileContent:  function () {
        $jQ('#pdp-cart-header').clone().appendTo('#pdp-mobile-cart-header');
        $jQ('.pdp-cart-shipping').clone().appendTo('.mobile-fieldset.shipping');
    },

    createZoomPanel : function (which) { // create zoom panel ...........................................................................
        var zoomBlock = window.document.getElementById('zoom-block'); // gather requirements
        var zoomCrsl = window.document.getElementById('zoom-carousel-block');
        var zoomFocus = window.document.getElementById('zoom-focus');
        var zoomSlides = window.document.getElementById('zoom-slides');
        var pgWd = document.body.clientWidth;
        var pgHt = document.body.clientHeight;

        var hSize = (pgWd + 15); // create panel width & offset from current, adjust for scroll bar width in Chrome
        var hOffset = (hSize * -1);

        var crslWd = hSize;  // new var for contextual layout differences
        var lstOff = 0;
        if ( pgHt >= pgWd ) { crslWd = pgWd; } // limit slide width and increment to screen width if portrait

        $jQ(zoomBlock).css({ 'left': hOffset + 'px' }).attr('data-h-return', hOffset);  // set starting position & return

        if(which == undefined || which == "carousel-zoom"){  // contextual display
          // do nothing extra
       } else if(which == "view-scale"){ // if view-to-scale
          $jQ(zoomBlock).find("#zoom-scale-content").toggle();
          $jQ(zoomFocus).toggleClass('hide-slides');
       } else if(which == "view-360"){ // if view-360
          $jQ(zoomBlock).find("#zoom-view-360-content").toggle();
          $jQ(zoomFocus).toggleClass('hide-slides');
       } else if(which == "toggle-scale"){ // toggle scale on/off in loaded panel
          $jQ(zoomBlock).find("#zoom-scale-content").toggle();
          $jQ(zoomFocus).toggleClass('hide-slides');
          return false; // panel already exists
       } else if(which == "toggle-view-360"){ //toggle view-360 on/off in loaded panel
          $jQ(zoomBlock).find("#zoom-view-360-content").toggle();
          $jQ(zoomFocus).toggleClass('hide-slides');
          return false; //panel already exists
       }

        MLS.ui.hSlide(zoomBlock, hSize); // slide in panel
        setTimeout(function() { // hide vertical scroll after
            $jQ('html, body').addClass('body-zoom');
        }, 750);

        setTimeout(function() {  // fade in controls
            $jQ('#zoom-block .center-block, #zoom-close, #zoom-controls, .vzn-slide-prev, .vzn-slide-next').fadeIn('slow');
        }, 500);
        $jQ('#zoom-close').click(MLS.productDetail.closeZoomPanel); // close zoom panel
    },
    closeZoomPanel: function () { // zoom panel 'close'..........................................................................
       var zoomBlock = window.document.getElementById('zoom-block');
        var zoomCrsl = window.document.getElementById('zoom-carousel-block');
        var zoomFocus = window.document.getElementById('zoom-focus');
        var currentSld =  window.document.getElementById('current-zoom-slide');

        setTimeout(function() { // fade out controls
            $jQ('#zoom-block .center-block, #zoom-close, #zoom-controls').fadeOut('slow');
        }, 250);

        $jQ('html, body').removeClass('body-zoom'); //restore vertical scroll

        var sldReturn = $jQ(zoomBlock).attr('data-h-return'); // slide out panel
        MLS.ui.hSlide(zoomBlock, sldReturn);

       setTimeout(function(){ // restore current image if required & close xtra states
           if ($jQ(currentSld).hasClass('zoomed')) {
              var currentWin = $jQ(zoomCrsl).height();
                smallerView(currentSld, currentWin);
           }
           $jQ('#toggle-scale').text('View to Scale').parent().removeClass('hide-action'); // reset scale toggle
           $jQ('.zoom-content').css('display','none'); // hide all extras
           $jQ('#zoom-thumbs').css('display', 'block'); // restore thumbs if hidden
           $jQ(zoomFocus).removeClass('hide-slides'); // restore slides if hidden
        }, 500);
        $jQ(window).trigger('resize'); //snap
    },

    vznReveal : function(element, ht, wd) {
        var wdIncr = (wd) * -1;
        var htIncr = (ht) * -1;

        $jQ(element).css({
            '-webkit-transform' : ' translate3d(' + wdIncr + 'px,' + htIncr + 'px, 0) ',
            '-moz-transform' : ' translate3d(' + wdIncr + 'px,' + htIncr + 'px, 0) ',
            '-ms-transform' : ' translate3d(' + wdIncr + 'px,' + htIncr + 'px, 0) ',
            '-o-transform' : ' translate3d(' + wdIncr + 'px,' + htIncr + 'px, 0) ',
            'transform' : ' translate3d(' + wdIncr + 'px,' + htIncr + 'px, 0) '
        });
    },
    vznHide : function(element) {
        $jQ(element).css({
            '-webkit-transform' : ' translate3d(0, 0, 0)',
            '-moz-transform' : ' translate3d(0, 0, 0)',
            '-ms-transform' : ' translate3d(0, 0, 0)',
            '-o-transform' : ' translate3d(0, 0, 0)',
            'transform' : ' translate3d(0, 0, 0)'
        });
    },
    showMoreDevices : function(){
        var baselineNode = $jQ('#product-details .compatibility'),
        clickNode = baselineNode.find('.read-more'),
        scrollNode = baselineNode.find('.device-scroll');
        scrollNode.tinyscrollbar({ sizethumb: 65 });

        clickNode.click(function(){
            $jQ(this).toggleClass('toggle');
            scrollNode.toggleClass('scroll');
            scrollNode.tinyscrollbar_update();
        });
    },
    compatibleDropDowns : function(){
        $jQ('#detail-brand-select, #detail-device-select').uniform();
    },

    selectCompatibleProducts : function(){
        /*
        var itemsTotal = $jQ('#total-items > span'),
            returnedItems = $jQ('#returned-items');
        */
        $jQ('#detail-brand-select, #detail-device-select').change(this.searchCompatibleProducts);

        /*function(){
            // var selectType = $jQ(this).data('type'),
            selectID =  $jQ(this).val(),
            form = $jQ(this).closest('form'),
            formSubmit = form.attr('action');

            MLS.ajax.sendRequest(
                formSubmit,
                form.serialize(),
                function(data){
                    returnedItems.html(data.success.responseHTML);
                    returnedItems.closest('.device-scroll').tinyscrollbar_update();
                    itemsTotal.html(data.success.count);
                }
            );
        });
        */
    },

    searchCompatibleProducts: function(e) {
        e && e.preventDefault();

        var itemsTotal = $jQ('#total-items > span'),
            returnedItems = $jQ('#returned-items'),
            $form = $jQ("#compatibilityForm");

        MLS.ajax.sendRequest(
            $form.attr("action"),

            $form.serialize(),

            function (data) {
                returnedItems.html(data.success.responseHTML);
                returnedItems.closest('.device-scroll').tinyscrollbar_update();
                itemsTotal.html(data.success.count);
            }
        );

        return false;
    },

    compatibleTypeAhead : function(){
        /*
        var searchInput = $jQ('#detail-search-box'),
        typeAheadList = searchInput.parent().find('.type-ahead');
        processingPage = searchInput.data('actionpage');

        searchInput.keyup(function(){
            var keyword = $jQ(this).val();

            MLS.ajax.sendRequest(
                processingPage,
                {
                    keyword : keyword
                },
                function(data){
                    typeAheadList.html(data.success.responseHTML);
                }
            );
        });
        */

        var $input = $jQ('#detail-search-box'),
            self = this;

        $input.typeahead({
            name: 'devices',
            prefetch: {
                url: $input.data('actionpage') + '?search=%QUERY'
            },
            limit: 10
        }).on('change keyup typeahead:selected typeahead:closed', function (e,item) {
            // do somehting?
            if (e.type === 'typeahead:closed') {
                $jQ(this).blur();
            }

            if (e.type === 'typeahead:selected') {
                self.searchCompatibleProducts(e);
            }
        });
    },

    addCartValidation : function() {
        jQuery.validator.addMethod("noEmptySelect", function (value, element) {
            if (value == '0') {
                return false;
            } else {
                return true;
            }
        });

        $jQ('#pdp-add-to-cart').validate({
            rules: {
                pdpColorSelect: {
                    required: true
                },
                pdpSizeSelect: {
                    required: true,
                    noEmptySelect: true
                }
            },
            messages: {
                pdpColorSelect: "Please choose a color",
                pdpSizeSelect: {
                    required: "Please choose a size",
                    noEmptySelect: "Please choose a size"
                }
            }
        });
    }

};
return pub;
}());


text:
<!DOCTYPE html>

	<meta charset="UTF-8">
	<meta name="description" content="A part of Centre for Social Innovation, Ramanujan College, University of Delhi">
	<meta name="keywords" content="HTML, CSS, JavaScript">
	<meta name="author" content="Faisal Akhtar">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Our Partners</title>
	<link rel="stylesheet" href="../../src/css/TypeB.css">
	<link rel="stylesheet" href="../../src/css/slideshow.css">
	<link rel="stylesheet" href="../../src/css/NGOs.css">
	<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">
	<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Tangerine|Raleway|Handlee">
	<link rel="icon" href="../../src/img/csi.png">

			 Home
			 About
			 Our Partners
			 Blog
			 Gallery
			 Our Inspirations

⛌ MENU  SOCIOVATION

		 Home
		 About
		 Our Partners
		 Blog
		 Gallery
		 Our Inspirations

☰ MENU  SOCIOVATION

Our Partners

 Uttarakhand

NGOs in India

Andhra Pradesh

Bihar

Chhatisgarh

Delhi

Goa

Gujarat

Haryana

Himachal Pradesh

Jammu & Kashmir

Jharkhand

Karnataka

Kerela

Madhya Pradesh

Maharashtra

Manipur

Mizoram

Orissa

Punjab

Rajasthan

Sikkim

Tamil Nadu

Telangana

Uttarakhand

Uttar Pradesh

Chandigarh

 Back

ALL

.

HEALTH

.

WOMEN

.

EDUCATION

.

ENVIRONMENT

.

POVERTY

Sanjeevani NGO

SANJEEVANI NGO

Sanjeevani Vikas Evam Jan Kalyan Samiti is a nonprofit, rural development and voluntary organisation in India whose mission is to eliminate poverty, unemployment, poor health and illiteracy. Sanjeevani is an indigenous NGO based in Almora District in Northern India(Himalyan Rigion). It was formed in 2000 by 7 peoples group of social workers and is comprised of an energetic group of recently qualified. Sanjeevani have been providing voluntary services to women empowerment & awareness, expansion of education, development science & technology awareness in common people, and create jobs in rural areas since its beginning.

Sanjeevani has got "Nirmal Gram Puraskar" twice from the President of India for improve public health and sanitation in rural villages. The approach is now being extended into the neighbouring villages of Almora district. Our organization was also rewarded for awareness of science and technology in the promising rural students by the Department of Science and Technology, Govt. of India. We have got so many other prizes and appreciations from the state and government officials.

Central Himalayan Environment Association

CENTRAL HIMALAYAN ENVIRONMENT ASSOCIATION

Our mission is to integrate rural livelihoods and sustainable conservation practices to reduce the environmental, economic, and social vulnerabilities of the mountain people. In cooperation with regional and international partners, and working with the communities, we aim to develop and provide integrated and innovative solutions that guide policy change and inspire action to directly benefit the mountain people and their environments.

The Himalayas are the principal home of glaciers and the source of water for over 1 billion people living in connected river basins. They are also extremely vulnerable to climate change. Thus, there is a critical need to guide development that incorporates and is compatible with the threat of a changing climate.

Abhiprerna Foundation

ABHIPRERNA FOUNDATION

Abhiprerna Foundation, established in 2007 by Dr. Deepesh Chandra Prasad, is a registered organization deducted to economic empowerment of women and uplift of the weaker sections of society. We strive to make Uttarakhand, India, and the entire world a more inclusive place for all people regardless of ability, age, race, creed, or socioeconomic background.

Aware of the power of the individual, we believe that each one of us should have a voice in our community, access to what we need, and respect from those around us. Our projects throughout Haridwar work to make these goals possible by empowering people with disabilities through education, awareness campaigns, community training and play. As we work for the most vulnerable in our neighborhoods we know that we will make the world better for all of us.

Info International Education and Welfare Society

INFO INTERNATIONAL EDUCATION AND WELFARE SOCIETY

IIEWS(Info International Education and Welfare Society) staff and consultants provide technical support, often alongside financial support, to in-country intermediary organisations. They in their turn provide financial and/or technical support to non-governmental and community-based organisations. This means that the IIEWS builds local skills and local institutions, rather than directly planning, managing and implementing programmes.

The Organization aims at formulating a number of Projects/Schemes for the development of weaker section of the society, for the preservation and conservation of Environment and its constituents. We also organizes all types development and skill sharpener programmes and innovative schemes for the development of Human being in all the district of Uttarakhand with a view to ameliorate the living conditions of the mankind of the nation in general and the people dwelling in Uttarakhand region in Particular, and we wish to involve ourselves in such activities on national and international level in the years to come and create some milestone for others in the fields of education and social welfare.

HIM Foundation

HIM FOUNDATION

Him Foundation is set up with noble objective to help individuals who require support in one form or another. Every individual has ability to help in one way or another and we take that forward by identifying those persons and providing them opportunities to help needy or poor individuals.

Our aim is to build a society of helping individuals from different walks of life and we are continuously striving for that. Anybody who wants to help others can freely walk to our center and we will discuss all the ways in which he or she can contribute to this. We want to keep growing and adding new members to our team. Thus Him Foundation is keen to do everything it can to eradicate the sufferings and provide equal opportunities to all the needy and poor individuals of society.

Social Awareness in Rural Area Society (SARS)

SOCIAL AWARENESS IN RURAL AREA SOCIETY (SARS)

Saras is an innovation social awareness non government organisation [NGO]. Running under the aegis of Harish Chandra Sharma. At Saras, our social activities are directed at creating awareness through specialization programs such as:

Undertaking Sports Activities

Village, Community based social programs

Cultural Activity

Create ECO Friendly Programs Saras at present, has over 300 active updating members and Angan Wari, who can do field work help at the Talukdar and Regional levels.

Drishtikone

DRISHTIKONE

DRISHTIKONE is a registered public charitable organization working in the fields of Education, Environment and Medical Facilities—for the underprivileged since 1997 (reg.#1997/2679/IV exempt under 80G & 12A of IT Act 1961)

The beneficiaries of the trust are the local underprivileged populace, especially children.

We have a TRUST BOARD which allows a maximum strength of seven members. Further the reigning Secretary RMS Abhibhabak, Shikshak aur Karamchari Samity is a casting member in the Trust Board. Including him, currently there are 6 members only.

Save Gangotri

SAVE GANGOTRI

Covering almost two decades of sustained efforts, our experiences can hopefully help others who are struggling to protect fragile alpine environments while balancing the benefits that religious and adventure tourism accrue to the local economy of mountain communities. Our progress in reestablishing Birch trees can be of particular assistance to those seeking information on eco-rehabilitation in dry high altitude climates.

Contemplating the ecological disturbances of the Gangotri-Gaumukh area, I decided to undertake practical eco-conservation work. Being a mountaineer, the experience of working in higher altitudes along with my research goals sustained me in my task over the long-term. As such, my first project focused on the Gangotri-Gaumukh area, which attracts the maximum number of pilgrims, trekkers, and mountaineers (Indian and foreign) in the Indian Himalayas.

Gramin Kshetra Vikash Samiti

GRAMIN KSHETRA VIKASH SAMITI

Our vision is to see happy women, Children & Disabled from Happy Families and Happy Communities. We are working with and for the process of progress for a society that is sympathetic to, and in keeping with the wishes of women, Children & Disabled. women, Children & Disabled have a special bond with the natural world and working towards the regeneration of a society that makes children happy will ensure a development that is in harmony with the environment. Children are more sensitive, so involving children in the development process will ensure that we adopt holistic approaches to development rather than concentrating only on economic and material advancement. A society that is committed to the needs of its children is one that is sensitive to the need of a development process that is based on the values of peace, harmony, equality, and sustainability. We want policy and action in the new state of Uttarakhand to center on the development of happy children.

Bhartiya Gramotthan Sanstha

BHARTIYA GRAMOTTHAN SANSTHA

Bhartiya Gramotthan Sanstha is a registered organization working since 28 years in the field of social and rural development. Employment generation is the main objective of the organization.

For achieving its target the organization emphasizes on local raw material based employment. Apart from this, the other working areas of the organization is handicraft, handloom(wool, cotton, jute), jute carpet, giving commercial training to the women self help group (SHG) for income generation, helping SHG in marketing of their products, imparting technical knowledge, forestation, non formal education, environment related programme, cultivating medicinal plants, implementing various health programme based on Indian medical system with the participation of the mob is the major objective of the organization.

Kumaon Agriculture and Greenery Advancement Society (KAGAS)

KUMAON AGRICULTURE AND GREENERY ADVANCEMENT SOCIETY (KAGAS)

KAGAS, Pithoragarh is a non-governmental organization registered in 1992 under the Societies Registration Act of 1860. It is currently working with rural communities of Pithoragarh, Champawat, Udham Singh Nagar; Bageshwar and Nanital Districts of Uttarakhand State (India), Kagas is working in the field of community's innovation, income-generation, watershed development, women empowerment, education community, health, and technology transfer.

We have been working with bilateral and international agencies like CIDA (Canadian International Development Agency), CECI (Canadian Center for International Studies and Cooperation), Action Aid, Skill share International, Room to Read, and also with State and National Governments.

Himalayan Study Circle (HSC)

HIMALAYAN STUDY CIRCLE (HSC)

Himalayan Study Circle (HSC) with its basic belief in people-centered development, learning from the communities and where possible, extending support to the communities, has moved a long way since its inception in 1982. With this background, the community programs, initiated by the organization are need-based with a demand-driven approach. HSC is quite focused on its selection of the client communities, searching out those in need of support and guidance in retrieving their self -esteem. The vision statement of the organization itself is an innovating idea.

HSC is a non governmental organization established in the year 1982 at Pithoragarh registered under Registration act 1860, in 1986, HSC is also registered under the Foreign Contribution Regulation Act (FCRA), besides under the Income Tax Act one of the most backward and eco-fragile districts of the western region of Uttar Pradesh, now in the newly formed State of Uttarakhand. Dr. Dinesh Joshi, a journalist and social activist founded HSC with a vision of 'Making the lives of Himalayan people as radiant as Himalaya itself'. The mission thus to 'eradicate poverty, environmental degradation, disparity and social evils through People Centered Development process with understanding that the woman is the backbone of the hill economy'

Working Weekends on Organic Farms (WWOOF)

WORKING WEEKENDS ON ORGANIC FARMS

The consultants within WWOOF India Organics Pvt Ltd , have a wide range of disciplines and experience with the ability to provide farmer, growers, processors, packers and retailers with quality and cost effective advice and technical support right across the food chain on a national and international basis. As a client you can access all of this expertise.

The strength of the WWOOF India Organics Pvt Ltd team is the wide range of skills and expertise and the extensive network of organic sector contacts. These include organic farm business management advice, food production and procurement, protected cropping, horticulture, fruit, arable and root crop production, livestock management (dairy, poultry and pork), financial analysis, continuity programming, product development, food hygiene and safety, the development of quality systems cheaper certification options and training to individuals, co-operative groups and corporate client

Corbett Gram Vikas Samiti

Corbett Gram Vikas Samiti

Over the last 15 years our simple community of Chhoti Haldwani has evolved into the Corbett Gram Vikas  Samiti. Our inception was as Kumaoni Sanskritik Utthan Manch 2002 to Corbett Dharohar Prabandi Samiti  to Corbett Gram Vikas Samiti in 2003. In 2004 it was registered under the societies act and has 80G & 12A certificates. Corbett Gram Vikas  Samiti is a registered Non-Government Organization, formed by the community of Chhoti Haldwani in 2002  to realize the dreams of Jim Corbett and follow his principles. It offers nature guide services,  heritage walks, bird watching, home-stays, and folk dance & music programs by its members as part of  its community based tourism programme.

An important activity of the members of the samiti who have been trained on nature and heritage walks  is to conduct the visitors on the various trails in Kaladhungi and Chhoti Haldwani. Visitors going on  these trails have to be accompanied by a guide from the samiti at a nominal charge. This fee is  distributed amongst the members of the samiti.
			The village of Chotti Haldwani completed 100 years in 2015. The community of the village that Corbett  once owned remember him fondly till date and to realise his dreams and take his legacy forward have got  together to form the Corbett Gram Vikas Samiti(CGVS).

Sir Sayyed Educational Society

SIR SAYYED EDUCATIONAL SOCIETY

We are happy to inform you about our society : SIR SAYYED EDUCATIONAL SOCIETY (REGD.) NO. 17558 (D). Sir Sayyed Educational Society (Regd.) is a no loss/no profit voluntary NGO which is working for the upliftment of the poor down trodden people in general and Minorities in particular by improving their Health and Economic & Educational development. The society bears its financial responsibilities by general public donations.

In view of its aims and projects the society is required huge money while the society has very limited sources of income. To fulfill its aims & projects the society is facing acute shortage of funds. Therefore, the society appeals to all well wishers, considering Sawab-e-jaria, to donate to this society generously. We pray Almighty Allah for reward you for involvement in aims & projects of the society targetted for the cause of up-liftment of poor down trodden people and for eradication of illiteracy, unemployment, mal health and mal-nutrition. It is a great pleasure for all of us that the Government has allotted us the facilities of 12 AA; 80 G and F.C.R.A. for the help for the cause of upliftment of down trodden people in the mother land.

Parvatiya Jan Kalyan Sansthan

PARVATIYA JAN KALYAN SANSTHAN

Parvatiya Jan Kalyan Sansthan (PJKS) is a non-government, not for profit organization that has been working for the empowerment of the marginalized and deprived communities of Uttarakhand. Since its inception in 1990 the organization has been working for the economic and social development of people.

In PJKS we believe that when people get the opportunity to identify their needs and plan accordingly, the schemes and programmes crafted for them are optimally utilized and render the best results. Through participatory approach, PJKS always follows a bottom-up approach in all of its verticles and ensure informed participation of communities in its programmes.

Over the period, the organization has marked its presence as a committed, target oriented development agency, guided by professional values, with long-term objectives to pursue integrated community development.

In the journey of two decades, we have undertaken various interventions on the  issues like, livelihood and watershed management, value chain interventions, research & documentation, natural resource management, women empowerment, strengthening PRI, health and RCH, micro enterprise development etc.

SEWA Bharat

SEWA BHARAT

SEWA Bharat is part of the national SEWA movement. Established in 1984, it is a national federation of SEWA organizations of women working in the informal economy. SEWA Bharat emerged out of the need to address the SEWA movement's challenges with geographical expansion and coordination. SEWA Bharat is comprised of a family of SEWA organizations to further informal women workers' rights, livelihoods, financial independence, education, health and social security.

SEWA Bharat is committed to strengthening the movement of women in the informal economy by highlighting their issues at the national level and building its member organizations' capacity to empower them.The SEWA Movement has expanded strongly over the past 40 years and now has a membership of around 14 lakhs spread over 9 states. SEWA Bharat supports development programs and activities that organize women so they can aim to achieve full employment and self-reliance for all its members. Full employment means jobs that provide economic security, food security, and social security. Self-reliance refers to economic self–sufficiency and equitable roles in the decision-making process.

Gokul Kendra

GOKUL KENDRA

Life for the extra able gets torturous and depressive in remote as well as hilly areas of Uttarakhand due to the Physical Limitation and Tough Conditions resulting in Loss of jest for Life, cause heartache to their kinds & Loved ones. It's a gnawing pain to have a sibling, a spouse a parent or a child lost to disability. A Harsh ache of heart. This pain can be turned into happiness with positivity, care and affection of the society. The Society is so capable of the same. Everyone is doing its own effort. When the efforts of all unite, Gokul emerges with strong will and dedication to make the world a better Places for the Divyang persons residing in Tough, hilly terrain and remote posts of Uttarakhnd.

At Gokul we create an environment which inspires them to touch new heights of capabilities & success. This is the path we seek at Gokul. As a Catalyst to bring changes in the lives of extrable children and old ages people, who are not privileged, by addressing the real need at the grassroots level and also enabling the civil society to engage proactively in the change process and adopting the highest standard of governance and thereby emerging as an organization from Uttarakhand state, India.

Hills Development Mission

HILLS DEVELOPMENT MISSION

Hills Development Mission (HDM) is a Secular, Non Profit and Non-Governmental Voluntary Organization working for upliftment and sustainable development of Hill communities since 2002 without discrimination of race, caste, creed, sex, community and religion. The Organization is registered under Societies Registration Act, 1860 having its registration No. 1265/2001-2002 dated 11-03-2002.

HDM is an autonomous Organisation set up by a team of experienced and eminent professionals with a view to tap various aspects of community development through participation with an objective to determine the factors hindering sustainable development and discover the hidden bottlenecks of strategies and policies. Although the original thrust of the Organization is to focus different innovative and creative development activities. Our team of professionals provides long-term as well as short-term management support services to development initiatives. The team is capable of handling and resolving various challenges so as to bring effectiveness and efficiency in the development of community.

The Latika Roy Foundation

THE LATIKA ROY FOUNDATION

The Latika Roy Foundation is a voluntary organization in India working with children and adults who have developmental and other disabilities. As a resource centre for people with special needs, we provide early intervention services, livelihoods development, education, training and awareness. We believe that when we plan for the most vulnerable the world works better for everyone. Our rights-based approach challenges injustice and demonstrates how inclusion works. If you are a person with disability, a parent, a professional or someone who cares, there's a place for you in the Latika Roy Foundation.

Centre For Ecology Development And Research

CENTRE FOR ECOLOGY DEVELOPMENT AND RESEARCH

CEDAR is a not-for-profit organization registered in 2006 under the Societies Act of 1860. The registered office of CEDAR is located in Delhi while the main operations office is based in Dehradun. CEDAR was established when a group of academics and development practitioners came together to bridge the gap between applied research and field based interventions or, to put it differently, 'balance theory and practice'. The development sector has, for long, been caught in the divide between theoreticians and practitioners. This divide has set the sector back and deprived it of the opportunity to continuously assess and improve its work. This has also had implications for policy formulation whereby the lack of a right blend of lessons from the field, properly documented and analyzed, has led to information gap in policy formulation. CEDAR sees its role to straddle this divide and help fill the information gap in policy formulation.

Satyadham Samajik Seva Jan kalyan Sanstha Samitii

SATYADHAM SAMAJIK SEVA JAN KALYAN SANSTHA SAMITII

Satyadham Samajik Seva Jan kalyan Sanstha Samitiis the childcare, Widows Care, oldage care charity, campaigning for quality, accessible, affordable childcare for all and raising the voices of children, parents and carers. We advise parents and carers, providers,employers, trade unions and policymakers on childcare issues.

Satyadham Samajik Seva Jan kalyan Sanstha Samitiis the childcare, Widows Care, oldage care charity, campaigning for quality, accessible, affordable childcare for all and raising the voices of children, parents and carers. We advise parents and carers, providers,employers, trade unions and policymakers on childcare issues.

Aasraa Trust

AASRAA TRUST

Aasraa Trust was established as a social work trust focusing on education of underprivileged children in 2009, in response to a crisis for intervention for the welfare of children from the riverbed slum under the Bindal bridge. Aasraa then worked with the river bed community to promote the need for education and started an after school project to augment school education. Project Street Smart was started on the pavements of Astley Hall in 2011 with a group of 5 street children. The objective was to keep the children off the streets and provide them with basic literacy through art, craft, music and audio visual medium.

Today, Aasraa works towards empowering street and slum children through education, vocational training, nutrition, medical care and providing shelter homes. Our mission is to level the playing field for children who have neither seen books nor stepped into a school. The children we work with come from extremely impoverished backgrounds and are mostly rag pickers, beggars, addicts, runaways and orphans. We work with more than 1400 children.

Popular Posts

Organic Manure

Ulta Chhata

Smallest 3-D printed sattelite

Pathshala

Follow Us

			 Centre for Social Innovation

			 Sociovation

 Quick Links

HOME

ABOUT

BLOG

GALLERY

OUR INSPIRATIONS

About Us

Profile and Working

Vision and Mission

Fields of work

Team Members

Centre for Social Innovation

Ramanujan College, Kalkaji, New Delhi

+91 97606 20788, +91 97175 83595

sociovation@gmail.com

Sociovation

©All Rights Reserved to Centre for Social Innovation


text:
<?php

namespace Orchestra\OrchestraBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Orchestra\OrchestraBundle\Entity\Reponse
 *
 * @ORM\Table(name="reponse")
 * @ORM\Entity
 */
class Reponse
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string $reponse
     *
     * @ORM\Column(name="reponse", type="string", length=45, nullable=true)
     */
    private $reponse;

    /**
     * @var Question
     *
     * @ORM\ManyToOne(targetEntity="Orchestra\OrchestraBundle\Entity\Question")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="question_id", referencedColumnName="id")
     * })
     */
    private $question;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set reponse
     *
     * @param string $reponse
     * @return Reponse
     */
    public function setReponse($reponse)
    {
        $this->reponse = $reponse;

        return $this;
    }

    /**
     * Get reponse
     *
     * @return string
     */
    public function getReponse()
    {
        return $this->reponse;
    }

    /**
     * Set question
     *
     * @param Orchestra\OrchestraBundle\Entity\Question $question
     * @return Reponse
     */
    public function setQuestion(\Orchestra\OrchestraBundle\Entity\Question $question = null)
    {
        $this->question = $question;

        return $this;
    }

    /**
     * Get question
     *
     * @return Orchestra\OrchestraBundle\Entity\Question
     */
    public function getQuestion()
    {
        return $this->question;
    }
}


text:
require 'test_helper'

class ModelNameTest < Minitest::Test
  def test_default_name
    assert_equal User.model_name, 'user'
  end

  def test_edit_name
    assert_equal Blog.model_name, 'blog'
  end
end


text:
<?php
namespace Omnipay\Beanstream;

use Omnipay\Common\AbstractGateway;

class Gateway extends AbstractGateway
{
    /**
     * @return string
     */
    public function getName()
    {
        return 'Beanstream';
    }

    /**
     * @return array
     */
    public function getDefaultParameters()
    {
        return array(
            'merchantId' => '',
            'passcode' => '',
        );
    }

    /**
     * @return string
     */
    public function getMerchantId()
    {
        return $this->getParameter('merchantId');
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setMerchantId($value)
    {
        return $this->setParameter('merchantId', $value);
    }

    /**
     * @return string
     */
    public function getPasscode()
    {
        return $this->getParameter('Passcode');
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setPasscode($value)
    {
        return $this->setParameter('Passcode', $value);
    }

    /**
     * @param array $parameters
     * @return \Omnipay\Beanstream\Message\AuthorizeRequest
     */
    public function authorize(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Beanstream\Message\AuthorizeRequest', $parameters);
    }

    /**
     * @param array $parameters
     * @return \Omnipay\Beanstream\Message\CompleteAuthorize
     */
    public function completeAuthorize(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Beanstream\Message\CompleteAuthorize', $parameters);
    }

    /**
     * @param array $parameters
     * @return \Omnipay\Beanstream\Message\CaptureRequest
     */
    public function capture(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Beanstream\Message\CaptureRequest', $parameters);
    }

    /**
     * @param array $parameters
     * @return \Omnipay\Beanstream\Message\PurchaseRequest
     */
    public function purchase(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Beanstream\Message\PurchaseRequest', $parameters);
    }

    /**
     * @param array $parameters
     * @return \Omnipay\Beanstream\Message\RefundRequest
     */
    public function refund(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Beanstream\Message\RefundRequest', $parameters);
    }

    /**
     * @param array $parameters
     * @return \Omnipay\Beanstream\Message\VoidRequest
     */
    public function void(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Beanstream\Message\VoidRequest', $parameters);
    }
}