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 <Servo.h> | |
Servo esc1; | |
Servo esc2; | |
Servo esc3; | |
Servo esc4; | |
int x = 220; | |
void setup() { |
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 com.dummy.app; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentTransaction; | |
public class FragmentChange { | |
FragmentTransaction fragmentTransaction; | |
public void setCurrentFragment(Fragment newFragment, Context mContext) { |
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
uint32_t fibonacci(uint32_t n){ | |
if (n == 0) return 0; | |
if (n == 1) return 1; | |
return fibonacci(n - 1) + fibonacci(n - 2); | |
} |
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
public class FizzBuzz { | |
public static void main(String[] args) { | |
for (int i = 1; i <= 100; i++) { | |
if (i%3 == 0 && i%5 == 0) | |
System.out.println("FizzBuzz"); | |
else if (i%5 == 0) | |
System.out.println("Buzz"); |
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
uint32_t power(uint32_t n,uint32_t m){ | |
if (m == 0) return 1; | |
if (m == 1) return n; | |
return n * power(m - 1); | |
} |
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 <iostream> | |
#include <string> | |
#define PI 3.1415926 | |
using namespace std; | |
///////////////////------------------Variables---------------///////////////////////// |
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 <stdio.h> | |
void vowelCounters() { | |
printf("Enter your String : "); | |
scanf("%s", & input); | |
printf("\n\nYour String : %s", input); | |
for (i = 0; i <= 20; i++) { |
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 <stdio.h> | |
int main(int argc, char** argv) { | |
double x, y, z, n; | |
char a; | |
printf("===== Calculator App =====\n\n"); | |
printf("Choose Operation : \n\n"); | |
printf("1-Add"); |
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
#!flask/bin/python | |
from flask import Flask, jsonify, abort, request, make_response, url_for | |
from flask.ext.httpauth import HTTPBasicAuth | |
app = Flask(__name__, static_url_path = "") | |
auth = HTTPBasicAuth() | |
@auth.get_password | |
def get_password(username): | |
if username == 'miguel': |
OlderNewer