Skip to content

Instantly share code, notes, and snippets.

View sprintr's full-sized avatar
🎯
Focusing

Amin Ullah sprintr

🎯
Focusing
View GitHub Profile
@sprintr
sprintr / main.js
Last active August 29, 2015 14:21
A code snippet to demonstrate the new preferences code hints feature of Brackets.io
define(function (require, module, exports) {
var PreferencesManager = brackets.getModule("preferences/PreferencesManager"),
prefs = PreferencesManager.getExtensionPrefs("TestExt");
// Boolean
prefs.definePreference("one", "boolean", true, {
excludeFromHints: true // This won't show up in the code hints.
});
// Boolean Preference that will show up in code hints
{
"groups": {
"animationAddition": ["accumulate", "additive"],
"animationAttributeTarget": ["attributeName", "attributeType"],
"animationEvent": ["onbegin", "onend", "onload", "onrepeat"],
"animationTiming": ["begin", "dur", "end", "fill", "max", "min", "repeatCount", "repeatDur", "restart"],
"animationValue": ["by", "calcMode", "from", "keySplines", "keyTimes", "to", "values"],
"conditionalProcessing": ["requiredExtensions", "requiredFeatures", "systemLanguage"],
"core": ["id", "xml:base", "xml:lang", "xml:space"],
"documentEvent": ["onabort", "onerror", "onresize", "onscroll", "onunload", "onzoom"],
@sprintr
sprintr / LinkedList.cpp
Last active December 31, 2015 00:39
Searching in unsorted linked list!
#include <iostream>
using namespace std;
class LinkedList
{
public:
LinkedList()
{
start = NULL;
@sprintr
sprintr / LinkedList.cpp
Last active September 24, 2020 18:37
Linked List
#include <iostream>
using namespace std;
class LinkedList {
public:
LinkedList() {
start = NULL;
}
void add(int d) {
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
class Shape
{
public:
float area();
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
class Student
{
public:
void getData() {
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
class Employee
{
private:
int employeeId;
#include <iostream>
using namespace std;
class Time {
private:
int hours,
minutes,
seconds;