Skip to content

Instantly share code, notes, and snippets.

View abiduzz420's full-sized avatar
🐧
tinkering with compilery stuff

Uzair abiduzz420

🐧
tinkering with compilery stuff
View GitHub Profile
@abiduzz420
abiduzz420 / Candy-replenshing-robot.cpp
Last active March 13, 2017 16:46
Week of Code 30 | hacker rank | problem 1
//https://www.hackerrank.com/contests/w30/challenges/candy-replenishing-robot
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <cstdlib>
using namespace std;
class Party{
@abiduzz420
abiduzz420 / Minimum number.cpp
Created March 14, 2017 18:04
Week of code 30 | Hackerrank | problem 2
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <cstdlib>
using namespace std;
string getExpression(int num)
{
string expr;
@abiduzz420
abiduzz420 / melodious_password.cpp
Last active March 15, 2017 20:48
Week of code 30 | hackerrank | problem 3
/*
Problem statement : https://www.hackerrank.com/contests/w30/challenges/melodious-password
Resources: Faster I/O operations- http://www.geeksforgeeks.org/fast-io-for-competitive-programming/
Scanf return value warning- (line 21)
http://stackoverflow.com/questions/7271939/warning-ignoring-return-value-of-scanf-declared-with-attribute-warn-unused-r
*/
#include <iostream>
#include <cstdlib>
#include <bits/stdc++.h>
#include <cstdio>
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Color;
/*
<applet code = "SampleApplet" width = 300 height = 50>
</applet>
*/
public class SampleApplet extends Applet implements Runnable {
private String msg;
private Thread thread;
D:\uzair>apm list
Built-in Atom Packages (90)
├── atom-dark-syntax@0.28.0
├── atom-dark-ui@0.53.0
├── atom-light-syntax@0.29.0
├── atom-light-ui@0.46.0
├── base16-tomorrow-dark-theme@1.5.0
├── base16-tomorrow-light-theme@1.5.0
├── one-dark-ui@1.10.3
├── one-light-ui@1.10.3
/*
OVERVIEW: Given two strings, find the words that are common to both the strings.
E.g.: Input: "one two three", "two three five". Output: "two", "three".
INPUTS: Two strings.
OUTPUT: common words in two given strings, return 2D array of strings.
ERROR CASES: Return NULL for invalid inputs.
@abiduzz420
abiduzz420 / curl.md
Created December 3, 2017 19:22 — forked from banunatina/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
import React, { Component } from 'react';
import { Button } from 'semantic-ui-react';
import { Modal } from 'react-bootstrap';
import { connect } from 'react-redux';
import { has } from 'lodash';
import {
createUserInterests,
fetchUserInterests
} from '../../../../actions/userInterests';
async addAsset(asset) {
if (this.dedupe.has(asset.generated.js)) {
return;
}
// Don't dedupe when HMR is turned on since it messes with the asset ids
if (!this.options.hmr) {
this.dedupe.set(asset.generated.js, asset.id);
}
@abiduzz420
abiduzz420 / media-query.css
Created January 26, 2018 18:06 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS