Skip to content

Instantly share code, notes, and snippets.

@MrBeerBrewer
MrBeerBrewer / gist:0261d6d669f708d348faf1f6f460fc54
Created January 18, 2024 17:24
C program to find area of a triangle given three sides - BCA SEMESTER 1 NEP
#include <stdio.h> //Header file is included for Standard input and output
int main() { //This is where the program execution begins
// Declare variables for the sides of the triangle
float base, height;
// Prompt user for input
printf("Enter the base of the triangle: ");
//Store the value that is entered by the user in base variable %f means type cast it to float
scanf("%f", &base);
@MrBeerBrewer
MrBeerBrewer / docker-destroy-all.sh
Created April 14, 2019 17:44 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
<?php
/**
* coral-parallax functions and definitions
*
* @package coral-parallax
*/
/**
* Set the content width in pixels, based on the theme's design and stylesheet.
*
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Facebook.Unity;
public class FBManager : MonoBehaviour {
public Text txtStatus;
public GameObject btnLi, btnLo;
//Course model
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Course extends Model
{
public function getTakerDets(){
User-Course details
Java
Java programming
Taken by student: WdHNY
PHP
Easy php app
Taken by student: WdHNY
C
Java programming
Taken by student:
User {#207 ▼
#fillable: array:3 [▼
0 => "email"
1 => "password"
2 => "username"
]
#hidden: array:2 [▼
User-Course details
Java
Java programming
Taken by student: {"id":1,"username":"WdHNY","email":"woG3EV@gmail.com","enabled":null,"created_at":null,"updated_at":null}
PHP
Easy php app
Taken by student: {"id":1,"username":"WdHNY","email":"woG3EV@gmail.com","enabled":null,"created_at":null,"updated_at":null}
C
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
<form class="form-horizontal" role="form" method="POST" action="{{ url('/register') }}">
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
<form class="form-horizontal" role="form" method="POST" action="{{ url('/register') }}">