Skip to content

Instantly share code, notes, and snippets.

Working from home

Danish yeomann

Working from home
Block or report user

Report or block yeomann

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View testing-postfix-linklist.cpp
yeomann / assembly to compare 2 input number.asm
Last active May 10, 2019
assembly to compare 2 input number
View assembly to compare 2 input number.asm
MSG1 DB 13, 10, "Enter first number ", "$"
MSG2 DB 13, 10, "Enter second number ", "$"
MSG3 DB 13, 10, "You entered these 2 numbers ", "$"
MSGGreater DB 13, 10, "First Number is smaller", "$"
MSGEqual DB 13, 10, "Numbers are equal", "$"
MSGSecondGreater DB 13, 10, "Second Number is smaller", "$"
yeomann / assembly to add 2 numbers by input.asm
Last active May 10, 2019
assembly to add 2 numbers by input
View assembly to add 2 numbers by input.asm
MSG1 DB "Enter first number", 13, 10, "$"
MSG2 DB "Enter second number", 13, 10, "$"
MSG3 DB "You entered these 2 numbers", 13, 10, "$"
MSG4 DB "Result is", 13, 10, "$"
mov ax,@DATA
mov ds,ax
yeomann / 0-model-override.js
Created Mar 6, 2019 — forked from spencermefford/0-model-override.js
An alternative to extending Loopback's built in models. In our application, we wanted to create a custom role called "ecm-administrator" that would have the ability to create and manage users.
View 0-model-override.js
module.exports = function (app) {
var _ = require('lodash');
var User = app.models.User;
var Role = app.models.Role;
var RoleMapping = app.models.RoleMapping;
var ACL = app.models.ACL;
* Configure ACL's
yeomann / gist:a78513336a91a887b5600b4e16c82530
Last active Mar 4, 2019
Vscode unable to watch for file changes in large workspace - Ubuntu 18+
View gist:a78513336a91a887b5600b4e16c82530
First we can check the current limits etc by following:
echo "MAX file watches allowed on system"
cat /proc/sys/fs/inotify/max_user_watches
echo "Current files in project - excluding node_modules"
find . -type f -not -path '**/node_modules/**' | wc -l
echo "Current files in project - including node_modules"
yeomann / React Native Simulators Command
Last active Oct 25, 2018 — forked from rexlow/md
Run React Native on specific iOS simulator version
View React Native Simulators Command
To add a simulator
Choose Hardware > Device > Manage Devices.
Xcode opens the Devices window.
At the bottom of the left column, click the Add button (+).
In the dialog that appears, enter a name in the Simulator Name text field and choose the device from the Device Type pop-up menu.
//by default
yeomann / SQLite-PHP-quickstart.php
Created Aug 25, 2018 — forked from bladeSk/SQLite-PHP-quickstart.php
SQLite3 PHP Quickstart Tutorial
View SQLite-PHP-quickstart.php
// This file walks you through the most common features of PHP's SQLite3 API.
// The code is runnable in its entirety and results in an `analytics.sqlite` file.
// Create a new database, if the file doesn't exist and open it for reading/writing.
// The extension of the file is arbitrary.
$db = new SQLite3('analytics.sqlite', SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READWRITE);
yeomann / evaldecode.php
Created Aug 15, 2018 — forked from yireo/evaldecode.php
Decode evil scripts encoded with eval(gzinflate(base64_decode()))
View evaldecode.php
* Basic script to decrypt files encoded with eval(gzinflate(base64_decode($data)));
$file = 'encrypted.php';
$content = file_get_contents($file);
function evaldecode($content, $step = 0) {
//echo "STEP $step\n";
yeomann / eager-prefetching-async-data-example.js
Created Aug 6, 2018 — forked from bvaughn/eager-prefetching-async-data-example.js
Advanced example for eagerly prefetching async data in a React component.
View eager-prefetching-async-data-example.js
// This is an advanced example! It is not intended for use in application code.
// Libraries like Relay may make use of this technique to save some time on low-end mobile devices.
// Most components should just initiate async requests in componentDidMount.
class ExampleComponent extends React.Component {
_hasUnmounted = false;
state = {
externalData: null,
yeomann /
Created Jul 26, 2018 — forked from MoOx/
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
You can’t perform that action at this time.