Skip to content

Instantly share code, notes, and snippets.

View imprakharshukla's full-sized avatar
🎯
Focusing

Prakhar Shukla imprakharshukla

🎯
Focusing
View GitHub Profile
View Arch install Blender
Arch Linux installation instructions
To use Blender on Arch Linux, you must enable the “Community” software repository. To do this, open up a terminal window by pressing Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, from there, open up your Pacman configuration file in the Nano text editor.
sudo nano -w /etc/pacman.conf
Using the Down Arrow on the keyboard, locate the “Community” section of the file, and remove the # symbol from in front of “Community.” Be sure to also remove the # symbol from all lines directly below it.
Once you’ve made the edits to the Pacman configuration file in the Nano text editor, it’s time to save the edits. To save, press Ctrl + O on the keyboard, and press the Enter key. Then, close the Nano text editor by pressing Ctrl + X.
After saving edits to the Pacman configuration file, use the Arch package manager to re-sync software sources, so that “Community” is accessible.
View sprite.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Session_creation.js
const functions = require('firebase-functions');
const cors = require('cors')({ origin: true });
exports.purch_moddedFetch = functions.https.onRequest((request, response) => {
cors(request, response, async () => {
View Webhook_backend.js
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
//Removed for sec reasons
const stripe = require('stripe')('sk_test_xxxxx');
const endpointSecret = 'whsec_xxxxx';
// set the port of our application
@imprakharshukla
imprakharshukla / CaesarCipher.java
Created February 6, 2020 18:07
2017 Pratical question
View CaesarCipher.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class CaesarCipher {
static String s = "";
static String s2 = "";
static char symbols[];
static String words[];
View Q1_2018.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Q1_2018 {
static int n = 0;
static int primes[];
public static void main(String[] args) throws IOException {
View Q3.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.SQLOutput;
public class Q3 {
static String s;
static String s2 = "";
@imprakharshukla
imprakharshukla / Q1.java
Created February 6, 2020 14:45
Question 1 of 2019 ISC Practicals
View Q1.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.Buffer;
public class Q1 {
static int day, N, y, l, k;
static int days[];
static String months[];
View CI_Error
"Install Android SDK Platform 29 (revision: 4)" finished.
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :terminal-view:preBuild UP-TO-DATE
> Task :terminal-view:preDebugBuild UP-TO-DATE
> Task :terminal-view:compileDebugAidl NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :terminal-view:packageDebugRenderscript NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig
View BillingHelper.java
package studio.com.techriz.andronix;
import android.app.Application;
import org.solovyev.android.checkout.Billing;
public class BillingHelper extends Application {
private static BillingHelper sInstance;