Skip to content
View shakhal's full-sized avatar

Organizations

@hasadna

Block or report shakhal

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Find values in JSON by key, recursively Find values in JSON by key, recursively
    1
    function findValues(obj, key){
    2
    	return findValuesHelper(obj, key, []);
    3
    }
    4
    
                  
    5
    function findValuesHelper(obj, key, list) {
  2. Extracting Your Own Location Informa... Extracting Your Own Location Information From Google
    1
    // Today's time is needed to get the bounding for the request
    2
    $currentTime = time();
    3
    
                  
    4
    // Beginning and end of the day
    5
    $startTime = strtotime("midnight", $currentTime);
  3. Call JSONP Call JSONP
    1
    function callJsonp(url, callbackFunc){
    2
    	var callbackName;
    3
    	
    4
    	if (callbackFunc == null || callbackFunc.length == 0){
    5
    		callbackName = "dummy";
  4. Cytoscape js layout switcher Cytoscape js layout switcher
    1
    $(function(){ // on dom ready
    2
    
                  
    3
    	var html = layouts.reduce(function(a,e,i){return a+"<a onclick='setLayout("+i+")'>"+e+"</a> - "},"Layouts:")
    4
    	$("#cy").before(html);
    5
    
                  
  5. Yearly Quarters math, add, subtract,... Yearly Quarters math, add, subtract, increase etc...
    1
    
                  
    2
    var Quarter = function(year, quarter){
    3
    
                  
    4
    	this.year = year;
    5
    	this.quarter = quarter;
  6. clone.sh clone.sh
    1
    #!/bin/bash
    2
    
                  
    3
    if [ -z "$1" ]; then
    4
        echo "missing org name"
    5
        exit 1