This file contains hidden or 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"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools"> | |
| <application | |
| android:allowBackup="true" | |
| android:dataExtractionRules="@xml/data_extraction_rules" | |
| android:fullBackupContent="@xml/backup_rules" | |
| android:icon="@mipmap/ic_launcher" | |
| android:label="@string/app_name" |
This file contains hidden or 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.example.experimental | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.os.Bundle | |
| import android.provider.Settings | |
| import android.widget.Toast | |
| import androidx.activity.enableEdgeToEdge | |
| import androidx.appcompat.app.AlertDialog | |
| import androidx.appcompat.app.AppCompatActivity |
This file contains hidden or 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
| " Turn on syntax highlighting | |
| syntax on | |
| " Set default tab space to 4 | |
| set ts=4 | |
| "set sts=4 | |
| "set sw=4 | |
| " Convert tabs to spaces | |
| set et | |
| " Show line numbers | |
| set number |
This file contains hidden or 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/sh | |
| # This script must be executed in the repo where | |
| # the *.ts files are. | |
| # It will concatenate the segments into one temp | |
| # file which ffmpeg will reencode the audio track. | |
| # By default the ouptup filename is output.mp4 | |
| # but can be changed by providing the name as parameter. | |
| # | |
| # ffmpeg is required |
This file contains hidden or 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
| eureka: | |
| client: | |
| register-with-eureka: true | |
| fetch-registry: true | |
| service-url: | |
| defaultZone: http://localhost:8761/eureka/ | |
| instance: | |
| hostname: localhost |
This file contains hidden or 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
| !function(r){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.uuidv4=r()}}(function(){return function r(e,n,t){function o(f,u){if(!n[f]){if(!e[f]){var a="function"==typeof require&&require;if(!u&&a)return a(f,!0);if(i)return i(f,!0);var d=new Error("Cannot find module '"+f+"'");throw d.code="MODULE_NOT_FOUND",d}var p=n[f]={exports:{}};e[f][0].call(p.exports,function(r){var n=e[f][1][r];return o(n?n:r)},p,p.exports,r,e,n,t)}return n[f].exports}for(var i="function"==typeof require&&require,f=0;f<t.length;f++)o(t[f]);return o}({1:[function(r,e,n){function t(r,e){var n=e||0,t=o;return t[r[n++]]+t[r[n++]]+t[r[n++]]+t[r[n++]]+"-"+t[r[n++]]+t[r[n++]]+"-"+t[r[n++]]+t[r[n++]]+"-"+t[r[n++]]+t[r[n++]]+"-"+t[r[n++]]+t[r[n++]]+t[r[n++]]+t[r[n++]]+t[r[n++]]+t[r[n++]]}for(var o=[],i=0;i<256;++i)o[i]=(i+256).toString(16).subs |
This file contains hidden or 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
| // DP Youtube Playlist - https://www.youtube.com/playlist?list=PL_z_8CaSLPWekqhdCPmFohncHwz8TY2Go | |
| package dp; | |
| import java.util.Arrays; | |
| @SuppressWarnings("ALL") | |
| public class DynamicProgramming { | |
| /* Knapsack Pattern */ |
This file contains hidden or 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
| By default, the keyboard layout is set for UK on Raspbian OS, to set it to US following are the steps: | |
| 1. Launch Terminal | |
| 2. Open “/etc/default/keyboard” with nano (or any other editor). | |
| sudo nano /etc/default/keyboard | |
| The file should be like this: |
This file contains hidden or 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 pymysql.cursors | |
| connection = pymysql.connect(host='localhost', | |
| user='dummy', | |
| password='pass', | |
| db='demo', | |
| cursorclass=pymysql.cursors.DictCursor) | |
| try: | |
| with connection.cursor() as cursor: | |
| sql = "INSERT INTO student ( roll, name ) VALUES (%s, %s)" |
NewerOlder