Skip to content

Instantly share code, notes, and snippets.

View Nahiduzzaman's full-sized avatar
🏠
Working from home

Md. Nahiduzzaman Rose Nahiduzzaman

🏠
Working from home
View GitHub Profile
#include <iostream>
using namespace std;
int main()
{
int t,b=1,f=0,g=0,vc=0,temp = 0,fc = 0;
string s1;
string s2 = "BACK";
string s3 = "FORWARD";
string s4 = "QUIT";
string s5 = "VISIT";
#include <stdio.h>
int main()
{
int t,i=0;
unsigned long long int w;
scanf("%llu",&t);
//for(int i = 0 ; i < t;i++)
while(t--)
{
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
<this code has faults in line no 10-19>
Assign a badge
-------------------------------------------------------Option 1-------------------------------------------------------
------------------------------------
.html [badge-board.html] (Option 1)
------------------------------------
<div>
@Nahiduzzaman
Nahiduzzaman / ng_Dependent_dropdown
Last active April 20, 2016 09:34
Populate two dropdown from api, 2nd one is depenedent to first one. Check the JSON data.
--------------------------------------------------------------------------------------
.JSON
--------------------------------------------------------------------------------------
[{
"_id": "57148bdd479c753360d787f0",
"title": "Guiding Principle Warriors",
"badges": [{
"title": "1Q",
"_id": "57148cc1479c753360d787f1"
This example shows how to catch up webview using iframe, and sending parameters using url
-------
app.js
-------
.state('tab.individual', {
url: '/individual/:empId/:reviewId',
views: {
'tab-myrobi@tab': {
templateUrl: 'templates/ongo-survey.html',
@Nahiduzzaman
Nahiduzzaman / Rough Code_2
Last active May 4, 2016 08:32
Code for Healthkit
/*$scope.saveWorkout = function() {
$cordovaHealthKit.saveWorkout(
{
'activityType': 'HKWorkoutActivityTypeWalking',
'quantityType': 'HKQuantityTypeIdentifierStepCount',
'startDate': new Date(), // now
'endDate': null, // not needed when using duration
'duration': 6000, //in seconds
'energy': 400, //
'energyUnit': 'kcal', // J|cal|kcal
To see free RAM space:
watch -n 5
xampp symlink:
sudo ln -s /home/rose/hello /opt/lampp/htdocs