Skip to content

Instantly share code, notes, and snippets.

View U-C-S's full-sized avatar
🤷‍♂️
In 'now what' phase

Chanakya U-C-S

🤷‍♂️
In 'now what' phase
View GitHub Profile
@U-C-S
U-C-S / gh-pages-deploy.md
Created November 22, 2020 09:23 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@U-C-S
U-C-S / gh-contrib.js
Last active September 10, 2021 05:58
Adding this Year's Github Contributions
let x = document.getElementsByClassName("ContributionCalendar-day");
let y = 0;
for(let i = 0; i < x.length-10; i++) {
let val = parseInt(x[i].dataset.count);
if(val != NaN){
y = y + val;
}
}
@U-C-S
U-C-S / imgur.md
Created March 4, 2022 14:13
My Imgur

WhatsApp Image 2022-03-04 at 15 19 19

@U-C-S
U-C-S / Film_list.md
Last active March 16, 2022 16:32
Film_list

All of the films I watched since 2018 Aug. Some films might be Missing in the list (like Marvel, DC or some big blockbusters films) which I don't like having in this list or some I had forgotten to add here.

Favourites

  • Inside out
  • Shawshank redemption
  • Get Out
  • The Thing
  • Planet of the Apes Trilogy
  • Prestige
// C++ program for the above approach
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int int64;
int64 Message[80];
// Stores the hexadecimal values for
// calculating hash values
const int64 Constants[80]
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://gist.githubusercontent.com/U-C-S/1f3fe5876a3b2ccf0ca5c7e630427185/raw/c2a57b29601baf476bee71a2c247e03f46d5204d/hurl_settings_schema.json",
"title": "Hurl UserSettings Schema",
"type": "object",
"properties": {
"LastUpdated": {
"type": "string"
},
"Browsers": {