This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() | |
{ | |
int random_stack_var; | |
printf("stack %p\n", &random_stack_var); | |
const char* c_pointer = "Hello"; | |
printf("c_pointer %p : %s\n", c_pointer, c_pointer); | |
const char* c_pointer_arr[] = { "Hello", "World" }; | |
printf("c_pointer_arr %p\n", c_pointer_arr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let p = new Promise((resolve, reject) => resolve() ) | |
.then( () =>{ | |
let ARR = [0]; | |
return ARR; | |
}) | |
.then( (ARR) =>{ | |
ARR.push(1); | |
let p_inner = new Promise( | |
(inner_resolve, inner_reject) =>{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function O(){}; | |
O.func1=function (){ | |
console.log(); | |
} | |
O.func2=function (){ | |
var argg = 1; | |
func1(); | |
return argg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createFieldRow(objects, row, design_row, readonly) { | |
var log = GLOBALS.CONTROL.getLog(); | |
var column = row.column; | |
var column2 = row.column2; | |
var global_edit_group = objects._CONTROL.edit_group; | |
var edit_group = row.edit_group; | |
if (edit_group === null) edit_group = -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request'); | |
const cheerio = require('cheerio'); | |
const fs = require('fs'); | |
const util = require('util'); | |
run(); | |
async function run(){ | |
try{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
struct list_node | |
{ | |
const char * name; | |
list_node* next; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
struct list_node | |
{ | |
int value; | |
list_node* next; | |
list_node( int value ) : value( value ), next( NULL ) {} | |
}; | |
void insert_before( list_node** head, list_node* before_this, list_node* insert_this) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLASSES.FIELD_BASIC_INPUT = function () { }; | |
copy( CLASSES.FIELD_BASIC_INPUT, | |
[FIELD_BASIC_proto, FIELD_VALUE_proto, FIELD_DOM_proto, FIELD_BASIC_INPUT_proto]); | |
CLASSES.FIELD_BASIC_TEXTAREA = function () { }; | |
copy( CLASSES.FIELD_BASIC_TEXTAREA, | |
[FIELD_BASIC_proto, FIELD_VALUE_proto, FIELD_DOM_proto, FIELD_BASIC_TEXTAREA_proto]); | |
CLASSES.FIELD_BASIC_LABEL = function () { }; | |
copy( CLASSES.FIELD_BASIC_LABEL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* To prevent any potential data loss issues, you should review this script in detail before running it outside the context of the database designer.*/ | |
BEGIN TRANSACTION | |
SET QUOTED_IDENTIFIER ON | |
SET ARITHABORT ON | |
SET NUMERIC_ROUNDABORT OFF | |
SET CONCAT_NULL_YIELDS_NULL ON | |
SET ANSI_NULLS ON | |
SET ANSI_PADDING ON | |
SET ANSI_WARNINGS ON | |
COMMIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
endsWith = function (str, suffix) { | |
if (str.length < suffix.length) | |
return false; | |
var suff_i = suffix.length - 1; | |
var str_i = str.length - 1; | |
for (; suff_i >= 0;) { | |
if (str.charAt(str_i) != suffix.charAt(suff_i)) | |
return false; | |
--suff_i; | |
--str_i; |