Skip to content

Instantly share code, notes, and snippets.

View atiq-cs's full-sized avatar
💭
Head's on the cloud

Atiq Rahman atiq-cs

💭
Head's on the cloud
View GitHub Profile
@atiq-cs
atiq-cs / v8gen.py_debian9.txt
Created July 22, 2017 23:23
V8 GN Build Generatiion failure on Debian 9.0 '4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux'
$ tools/dev/v8gen.py -vv x64.debug
################################################################################
/usr/bin/python -u tools/mb/mb.py gen -f infra/mb/mb_config.pyl -m developer_default -b x64.debug out.gn/x64.debug
Writing """\
is_debug = true
target_cpu = "x64"
v8_enable_backtrace = true
v8_enable_slow_dchecks = true
v8_optimized_debug = false
@atiq-cs
atiq-cs / mysql queries.txt
Created August 21, 2017 21:51
Mysql Queries for practice
Posted here: https://fftsys.azurewebsites.net/atiq/tech/msql-command-examples
create table customer
(WordAlias varchar(50),
WordSerial tinyint,
PartsOfSpeech varchar(30),
Meaning varchar(1000),
UseInSentence varchar(200),
BPron varchar(30),
BAntonym varchar(100),
@atiq-cs
atiq-cs / Installing editable comment plugin on wordpress blog
Created August 21, 2017 22:14
How to install editable comment plugin on wordpress blog, last tested 6th July, 2010
How to install editable comment plugin?
- Copy the editable comment plugin dir to plugin dir
http://wordpress.org/extend/plugins/editable-comments/
- Activate plugin from admin account
- Edit this file, "WORDPRESSINSTALLDIR\wp-includes\comment-template.php"
- After line
<?php comment_text() ?>
Please Add,
<?php if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::edit('Edit'); } ?>
@atiq-cs
atiq-cs / format_spec_test.c
Last active August 31, 2017 05:14
C program for format specifier. This experiment was done to verify the sparc disassembler functions
/*
Example output (on sparc),
1969772169
1969772169
0x75685689
75685689
016532053211
16532053211
*/
@atiq-cs
atiq-cs / depot_tools_win.diff
Last active September 1, 2017 00:52
Required in Windows when under Proxy for v8/chromium checkout file last modified: July 20, 2016
diff --git a/bootstrap/win/get_file.js b/bootstrap/win/get_file.js
index 2561fb3c..a4a5c4f6 100644
--- a/bootstrap/win/get_file.js
+++ b/bootstrap/win/get_file.js
@@ -6,20 +6,37 @@ function Download(url, path, verbose) {
if (verbose) {
WScript.StdOut.Write(" * GET " + url + "...");
}
- try {
- xml_http = new ActiveXObject("MSXML2.ServerXMLHTTP");
@atiq-cs
atiq-cs / depot_tools_solaris.diff
Created September 1, 2017 17:45
support few archs on Solaris for depot tools
$ git show HEAD
commit e8480ae76179949c08c90b81fc3b16792b5f514c (HEAD -> solaris-os-supoort)
Author: Atiq Rahman <[email protected]>
Date: Sun Jul 30 19:14:27 2017 -0700
Support Solaris platform on a few arch
diff --git a/cipd b/cipd
index ef2e4ad5..f2884bff 100755
--- a/cipd
@atiq-cs
atiq-cs / LIS_nlgn.cpp
Created October 10, 2017 22:26
MAK's LIS Implementation
/*
* Copied from: https://paste.ofcode.org/e2wNKmt5QyriNTeEZYbNei
* In case that paste content expires
*/
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
@atiq-cs
atiq-cs / cs_online_test_01_params_test.cs
Last active October 23, 2017 04:10
a test from wiziq.com - first question
/* Question 1 of a C# Test
What will be outputs
0
10
60
Possibly from: wiziq.com
*/
using System;
using System.Collections.Generic;
@atiq-cs
atiq-cs / cs_online_test_02_nullable.cs
Created October 23, 2017 04:10
a test from wiziq.com - secocnd question
/* Question 2 of a C# Test
http://www.wiziq.com/online-tests/14096-csharp-your-skills-1
ref Convert.ToString:
https://msdn.microsoft.com/en-us/library/astxcyeh(v=vs.110).aspx
Quote:
Return Value
Type: System.String
The string representation of value, or String.Empty if value is an object
whose value is null. If value is null, the method returns null.
@atiq-cs
atiq-cs / SecondSmallest.cs
Created October 31, 2017 20:02
Find second smallest from the given collection
using System;
class KthSmallest {
int[] A;
public KthSmallest() {
}
// representation should be taken, process input
public void TakeInput() {
A = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);