Skip to content

Instantly share code, notes, and snippets.

View farhaanbukhsh's full-sized avatar
🤗

Farhaan Bukhsh farhaanbukhsh

🤗
View GitHub Profile

I hereby claim:

  • I am farhaanbukhsh on github.
  • I am farhaan (https://keybase.io/farhaan) on keybase.
  • I have a public key ASDwoQPACA5UWStb3m-IWPPe9S5hfEd-YcJ9GOtw3itpPAo

To claim this, I am signing this object:

{
@farhaanbukhsh
farhaanbukhsh / advance_response.json
Created March 8, 2021 07:12
OpenEdx advance response
{
"end_of_course_survey_url": {
"deprecated": true,
"help": "Enter the URL for the end-of-course survey. If your course does not have a survey, enter null.",
"hide_on_enabled_publisher": false,
"display_name": "Course Survey URL",
"value": null
},
"allow_public_wiki_access": {
"deprecated": false,
@farhaanbukhsh
farhaanbukhsh / twitterTrendingOff.js
Created June 1, 2020 05:06
This script is a TamperMonkey script that is use to hide the Trending Now Panel. This is mostly to save yourself from the negative trends and keep your mental peace.
// ==UserScript==
// @name Hide Twitter Machine Trends
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Farhaan Bukhsh
// @match https://twitter.com/*
// @grant none
//// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
from abc import ABC, abstractmethod
class BuffetHogger(ABC):
@abstractmethod
def starter_hogging(self):
pass
@abstractmethod
@farhaanbukhsh
farhaanbukhsh / initial.go
Last active April 20, 2018 07:00
The initial cut of chuck
// Chucknorris is the struct used to unmarshal the JSON response from the URL
type Chucknorris struct {
Category []string `json:"category"`
IconURL string `json:"icon_url"`
ID string `json:"id"`
URL string `json:"url"`
Value string `json:"value"`
}
/* getJokes takes the API url as the parameter and fetch jokes from it,
@farhaanbukhsh
farhaanbukhsh / React Migrate
Created April 10, 2017 16:51
This is vimscript to migrate to ES2015 standards
"" Put the following function in your `.vimrc` and place the cursor on the
"" `var <ComponentName>` line once the cursor is there in the `command` mode
"" press spacebar to execute the function, check that your spacebar is not
"" mapped to any other function enjoy the migration to ES2015
""
"" Author : Farhaan Bukhsh <farhaan@fedoraproject.org>
"" React migrate
function ReactMigrate()
let curr_line = getline('.')
let replaceVar = substitute(curr_line, 'var', 'class', 'g')
@farhaanbukhsh
farhaanbukhsh / code.js
Last active August 29, 2015 14:22 — forked from maxkfranz/code.js
$(function(){ // on dom ready
var cy = cytoscape({
container: document.getElementById('cy'),
style: cytoscape.stylesheet()
.selector('node')
.css({
'content': 'data(id)'
})
@farhaanbukhsh
farhaanbukhsh / code.js
Last active August 29, 2015 14:22 — forked from maxkfranz/code.js
$(function(){ // on dom ready
var cy = cytoscape({
container: document.getElementById('cy'),
style: cytoscape.stylesheet()
.selector('node')
.css({
'content': 'data(id)'
})