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 requests | |
from bs4 import BeautifulSoup | |
fac_no = input('Enter Faculty Number:') | |
data = {'faculty_number' : fac_no, 'submit' : 'submit'} | |
page = requests.post('http://ctengg.amu.ac.in/student_wise_attendance.php', data) | |
attendance = BeautifulSoup(page.text).findAll('table')[0] | |
index = attendance.text.find('Name') + len('Name') |
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
<?xml version="1.0" encoding="utf-8"?> | |
<PreferenceScreen android:title="@string/about_settings" | |
xmlns:android="http://schemas.android.com/apk/res/android"> | |
<Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" /> | |
<Preference android:title="@string/firmware_version" android:key="firmware_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" /> | |
<Preference android:title="@string/build_number" android:key="build_number" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" /> | |
<Preference android:title="@string/baseband_version" android:key="baseband_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" /> | |
<Preference android:title="@string/kernel_version" android:key="kernel_version" android:summary="@string/device_info_default" style="?android:preferenceIn |
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 java.util.*; | |
public class Amigho | |
{ | |
public static boolean isUpper(char c){ | |
return (c>='A'&&c<='Z'); | |
} | |
public static boolean isLower(char c){ |
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 <vector> | |
#include <algorithm> | |
#define tmpl8 template <typename T> | |
using namespace std; | |
int binCount = 0; |
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> | |
#include <stdlib.h> | |
struct student { | |
char name[20]; | |
char subject[20]; | |
int marks; | |
struct student *next; | |
}; |
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
/* Node Server | |
* Captures image and displays them using multipart and boundary headers | |
* 16th Jan 2016 | |
* Author : Areeb Jamal, Rahul Jha | |
*/ | |
var fs = require('fs'), | |
http = require('http'), | |
express = require('express'), | |
NodeWebcam = require("node-webcam"); |
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 <stdio.h> | |
#include <sys/stat.h> | |
#include "socketreceiver.h" | |
using namespace std; | |
int file_exists(string filename) { | |
struct stat buffer; | |
return (stat (filename.c_str(), &buffer) == 0); |
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 time | |
import hashlib | |
class Block: | |
def __init__(self, index, data, previous_hash=None): | |
self.index = index | |
self.data = data | |
self.previous_hash = previous_hash | |
self.timestamp = time.time() |
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
#!/bin/bash | |
echo "$(tput setaf 6)$(tput bold)○ Checking Redis...$(tput sgr0)" | |
# Check if Redis CLI is present | |
if ! [ -x "$(command -v redis-cli)" ]; then | |
# If not, provide users an option to download | |
echo " $(tput setaf 3)$(tput bold)• Redis is not installed or on the path$(tput sgr0)" | |
read -p " Do you want to install it? $(tput dim)(Y/N)$(tput sgr 0) " prompt | |
if [[ $prompt =~ [yY] ]]; then | |
# Check if tools required to download and install redis are present |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer