This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
def list_subdirectories(directory): | |
"""Lists all subdirectory names in a directory. | |
Args: | |
directory: The directory to list subdirectories in. | |
Returns: | |
A list of all subdirectory names in the directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package co.ke.shardx.jasper.reports.example; | |
import java.awt.BorderLayout; | |
import java.io.File; | |
import java.sql.Connection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QTRSensors.h> | |
#define NUM_SENSORS 8 | |
#define NUM_SAMPLES_PER_SENSOR 4 | |
#define EMITTER_PIN 2 | |
// sensors 0 through 7 are connected to analog inputs 0 through 7, respectively | |
QTRSensorsAnalog qtra((unsigned char[]) {0,1,2,3,4,5,6,7},NUM_SENSORS, NUM_SAMPLES_PER_SENSOR, EMITTER_PIN); | |
unsigned int sensorValues[NUM_SENSORS]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Wire.h" | |
#include "sensorbar.h" | |
#include "Servo.h" | |
Servo base, elbow, gLeft, gRight; | |
const int mL1 = 8, mL2 = 7, mR1 = 4, mR2 = 9, mLPWM = 5, mRPWM = 6; | |
const int TRACK_SPEED = 80, MAX_SPEED = 160, APPROACH_SPEED = 60, ALIGN_HIGH_SPEED = 90, ALIGN_LOW_SPEED = 30; | |
char lastLane = 'C'; | |
#define MID_VAL 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.app') | |
@section('title', 'SkillMap Home') | |
@section('content') | |
<div id="content"> <div id="map" style="width: 100%; height: 100%;"></div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('es6-promise').polyfill(); | |
var request = require('request'); | |
const API_KEY = process.env.GOOGLE_MAPS_API_KEY || ''; | |
var places = [ | |
'steins, mountain view, CA', | |
'st. stephens green, mountain view, CA', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Wire.h" | |
#include "sensorbar.h" | |
#include "Servo.h" | |
Servo base, elbow, gLeft, gRight; | |
const int mL1 = 8, mL2 = 7, mR1 = 4, mR2 = 9, mLPWM = 5, mRPWM = 6; | |
const int TRACK_SPEED = 80, MAX_SPEED = 160, APPROACH_SPEED = 60, ALIGN_HIGH_SPEED = 90, ALIGN_LOW_SPEED = 30; | |
char lastLane = 'C'; | |
#define MID_VAL 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SoftwareSerial.h> | |
//Author Shadrack Kimutai | |
//SIM900 TX is connected to Arduino D8 | |
#define SIM900_TX_PIN 8 | |
//SIM900 RX is connected to Arduino D7 | |
#define SIM900_RX_PIN 7 | |
//Create software serial object to communicate with SIM900 | |
SoftwareSerial serialSIM900(SIM900_TX_PIN,SIM900_RX_PIN); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <gprs.h> | |
#include <SoftwareSerial.h> | |
const int trigPin = 2; | |
const int echoPin = 4; | |
const int ledPin =13; | |
const int medium =60; | |
const int high=35; | |
const int low=80; | |
GPRS gprs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ke.ac.rvti.rvttipollapp; | |
import android.app.Activity; | |
import android.app.AlertDialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.os.Looper; |
NewerOlder