Snippets Collections
package com.modeln.channelcollab.junit;

import com.modeln.channelnetwork.junit.graphql.AbstractChannelNetworkTest;
import com.modeln.channelnetwork.junit.graphql.GraphQLClient;
import com.modeln.channelnetwork.junit.graphql.SubmissionScheduleClient;
import io.restassured.path.json.JsonPath;
import io.restassured.response.Response;
import org.junit.Assert;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.test.context.junit.jupiter.SpringExtension;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.*;

@ExtendWith(SpringExtension.class)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@Tag("graphql")
public class SubmissionResultsTest extends AbstractChannelNetworkTest
{
    public static final String SUBMISSION_SCHEDULE_FILE_NAME_PREFIX = "Submission_Schedule_";
    public static String newSubmissionSchedulefilename, invoiceDate;

    public static final Integer DEFAULT_OFFSET = 0, DEFAULT_LIMIT = 100;

    public static SubmissionScheduleClient adminClient;

    public static BigDecimal sid;

    @Autowired
    protected JdbcTemplate jdbcTemplate;

    public static final String SUBMISSION_SCHEDULE_QUERY_OUTPUT_JSON = "SELECT distinct JSON_OBJECT('sid' value ss.sid,'reporting_partner_name' value rp_ovw.entity_name,'name' value name,'periodRule' value period_rule,'dataType' value dt.type ,'expectedDay' value expected_day,'isInPeriodReporter' value case when is_in_period_reporter = '1' then 'true' Else 'false' end,'weekOfMonth' value week_of_month,'monthOfQuarter' value month_of_quarter,'startDate' value start_date,'endDate' value end_date) AS \" \" FROM submission_schedule ss join reporting_partner rp on rp.sid = ss.reporting_partner_sid left join data_type dt on dt.sid = ss.data_type_sid left join rp_csr_overlay_v rp_ovw on rp_ovw.ip_sid = rp.inow_profile_sid";

    public static String NO_DATA_REASON = "SYSTEM ISSUE", noDataReason;

    public static String GET_SID_TO_UPDATE = "select sid from submission_period";

    public static final String ACQUIRE_LOCK_GRAPHQL_MUTATION = "mutation acquireLock{" +
            "  acquireLock(objectType: SUBMISSION_PERIOD, sid: $sid) {" +
            "    userId" +
            "    serviceName" +
            "    sid" +
            "    expiration" +
            "  }" +
            "}";

    public static String MARK_NO_DATA_MUTATION = "mutation markNoData{" +
            "  markNoData(data: [{" +
            "        sid: $sid, " +
            "    noDataReason: \"$noDataReason\"" +
            "  }]) {" +
            "    sid "+
            "    status" +
            "    code" +
            "    message" +
            "  }" +
            "}";

    public static final String CHECK_NO_DATA_FOR_SID = "select no_data from submission_period where sid = :sid";

    public static final String CHECK_NO_DATA_REASON_FOR_SID = "select no_data_reason from submission_period where sid = :sid";

    @BeforeAll
    public void createClient() throws Exception
    {
        String endPoint = getEnvironment().getProperty(
                GraphQLClient.CHANNEL_NETWORK_GRAPHQL_URI);
        adminClient = new SubmissionScheduleClient(endPoint, generateUser1Token());
        List fromDb = jdbcTemplate.queryForList(SUBMISSION_SCHEDULE_QUERY_OUTPUT_JSON);
        if (fromDb.size() == 0)
        {
            uploadFileToCreateNewSubmissionSchedule();
        }
    }

    public void uploadFileToCreateNewSubmissionSchedule() throws Exception
    {
        newSubmissionSchedulefilename = getFilename(SUBMISSION_SCHEDULE_FILE_NAME_PREFIX, XLS_EXTENSION);
        LocalDate localDate = LocalDate.now();
        invoiceDate = DateTimeFormatter.ofPattern("MM/dd/yy").format(localDate.plusMonths(1).withDayOfMonth(1));
        String date2 = DateTimeFormatter.ofPattern("MM/dd/yy").format(localDate.withDayOfMonth(1));

        String[] rowData1 =
                { "CTHULHU", "Y", "\"ARROW PARTNER Transaction WEEKLY 20000000\"", "", "WEEKLY",
                        "Monday", "ARROW", "transaction", "No",
                        date2, "",
                        "ci_testuserint_email@cdmutlmail.aws.modeln.com", "Y", "", "Y",
                        "Y", "", "" };

        String[] rowData2 =
                { "CTHULHU", "Y", "\"CC SS BASE PARTNER Inventory MONTHLY 20000000\"", "", "MONTHLY",
                        "1", "BASE", "inventory", "Yes",
                        date2, "",
                        "ci_testuserint_email@cdmutlmail.aws.modeln.com", "Y", "", "Y",
                        "Y", "", "" };

        String[] rowData3 =
                { "CTHULHU", "Y", "\"AMSDIRSAP PARTNER Inventory DAILY 20000000\"", "", "QUARTERLY",
                        "1", "AMSDIRSAP", "inventory", "No",
                        date2, "",
                        "ci_testuserint_email@cdmutlmail.aws.modeln.com", "Y", "", "Y",
                        "Y", "", "1" };

        String[] rowData4 =
                { "CTHULHU", "Y", "\"BASE PARTNER 2 Transaction MONTHLY 20000000\"", "", "MONTHLY",
                        "1", "BASE2", "transaction", "No",
                        date2, "",
                        "ci_testuserint_email@cdmutlmail.aws.modeln.com", "Y", "", "Y",
                        "Y", "", "1" };

        String[][] fileData = new String[][]
                { CTH_SUBMISSION_SCHEDULE_FIELDS, rowData1, rowData2, rowData3, rowData4 };

        createXlsFile(getEnvironment(), fileData,
                newSubmissionSchedulefilename);
        invokeFileScanner(CLIENT_ID);
        waitForFileUploadSuccess(newSubmissionSchedulefilename);
        Thread.sleep(10000);
    }

    @Test
    public void submissionResultsTest() throws Exception
    {
        List<Map<String, Object>> sidList = jdbcTemplate.queryForList(GET_SID_TO_UPDATE);
        Map<String, Object> params = new HashMap<String, Object>();
        for(int i=0;i<sidList.size();i++)
        {
            sid = (BigDecimal) sidList.get(i).get("SID");
            params.put("sid", sid);
            String noDataForSid = getNamedParamJdbcTemplate()
                    .queryForObject(CHECK_NO_DATA_FOR_SID, params, String.class);
            Map<String, Object> mutationVariables = new HashMap<>();
            mutationVariables.put("sid", sid);
            mutationVariables.put("noDataReason", NO_DATA_REASON);
            String acquireLockMutation = ACQUIRE_LOCK_GRAPHQL_MUTATION.replace("$sid", sid.toString());

            Response response = adminClient.submissionScheduleQueryrunner(DEFAULT_LIMIT,
                    DEFAULT_OFFSET, null, null,
                    acquireLockMutation);
            noDataReason = getNamedParamJdbcTemplate()
                    .queryForObject(CHECK_NO_DATA_REASON_FOR_SID, params, String.class);

            if (Integer.parseInt(noDataForSid) == 0)
            {
                String markNoDataMutation = MARK_NO_DATA_MUTATION.replace("$sid", sid.toString()).replace("$noDataReason", NO_DATA_REASON);

            adminClient.submissionScheduleQueryrunner(DEFAULT_LIMIT,
                    DEFAULT_OFFSET, null, null,
                        markNoDataMutation);

            Thread.sleep(1000);
        }

        else {

            String markNoDataMutation = MARK_NO_DATA_MUTATION.replace("$sid", sid.toString()).replace("$noDataReason", NO_DATA_REASON);

            Response response1 = adminClient.submissionScheduleQueryrunner(DEFAULT_LIMIT,
                    DEFAULT_OFFSET, null, null,
                        markNoDataMutation);

            String message = JsonPath.with(response1.getBody().asString())
                    .get("data.markNoData[0].message");

            Assert.assertEquals(message,"Submission Period already has reported data, so No-Data-To-Report is not applicable.");
        }

            noDataForSid = getNamedParamJdbcTemplate()
                    .queryForObject(CHECK_NO_DATA_FOR_SID, params, String.class);
        Assert.assertEquals(Integer.parseInt(noDataForSid), 1);
        noDataReason = getNamedParamJdbcTemplate()
                    .queryForObject(CHECK_NO_DATA_REASON_FOR_SID, params, String.class);
        Assert.assertEquals(noDataReason, NO_DATA_REASON);
    }
    }
}
// Product Adapter
class ProductAdapter {
  constructor(productService) {
    this.productService = productService;
  }

  async getProductList() {
    // Fetch product data from the ProductService
    const products = await this.productService.getProducts();

    // Transform and format the data as per frontend requirements
    const formattedProducts = products.map((product) => ({
      id: product.id,
      name: product.name,
      price: product.price,
    }));

    return formattedProducts;
  }

  async getProductDetails(productId) {
    // Fetch product details from the ProductService
    const product = await this.productService.getProductById(productId);

    // Transform and format the data as per frontend requirements
    const formattedProduct = {
      id: product.id,
      name: product.name,
      price: product.price,
      description: product.description,
    };

    return formattedProduct;
  }
}

// ProductService (Backend Service)
class ProductService {
  async getProducts() {
    // Simulate fetching product data from the actual backend service
    const response = await fetch('/api/products');
    const products = await response.json();

    return products;
  }

  async getProductById(productId) {
    // Simulate fetching a specific product's details from the actual backend service
    const response = await fetch(`/api/products/${productId}`);
    const product = await response.json();

    return product;
  }
}

// Usage
const productService = new ProductService();
const productAdapter = new ProductAdapter(productService);

// Get the list of products
const productList = await productAdapter.getProductList();
console.log(productList);

// Get details of a specific product
const productId = '123';
const productDetails = await productAdapter.getProductDetails(productId);
console.log(productDetails);
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
int main(){
    int nums[10];

    nums[0]=5;
    nums[3]=2;
    nums[9]=3;

    printf("%d%d%d\n",nums[0],nums[3],nums[9]);
    printf("(Garbage):%d%d%d\n\n",nums[1],nums[4],nums[7]);

    printf("Warning:\n");
    nums[10]=9;
    printf("%d\n\n",nums[10]);
    
    

return 0;


}
Copy
-- Train set
create or replace view v_iris_train as
select * from iris
sample(75)
seed(42);

-- Test set
create or replace view v_iris_test as
select * from iris 
minus 
select * from v_iris_train;
  position: relative;
}
.strikethrough:before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  right: 0;
  border-top: 2px solid #dd0031!important;
  border-color: inherit;

  -webkit-transform:rotate(-5deg);
  -moz-transform:rotate(-5deg);
  -ms-transform:rotate(-5deg);
  -o-transform:rotate(-5deg);
  transform:rotate(-5deg);
}

/*********************
BASE STYLE for Aesthetics Only
*********************/

body {
	background-color: #e6e7e8;
	color: #000000;
	margin-top: 3%;
}

.container {
	background-color: #ffffff;
	width: 75%;
	padding: 1.5%;
}

h2 {
	color: #F79420;
	padding-bottom: 1.5%;
}
[
    {
        "$match": {
            "startDate": {
                "$gte": {
                    "$date": "2018-03-12T03:26:21.997Z"
                },
                "$lte": {
                    "$date": "2024-03-10T04:50:35Z"
                }
            }
        }
    },
    {
        "$lookup": {
            "from": "participant",
            "localField": "userId",
            "foreignField": "_id",
            "as": "participantData"
        }
    },
    {
        "$unwind": "$participantData"
    },
    {
        "$match": {
            "participantData.email": {
                "$regularExpression": {
                    "pattern": "@jiva.user",
                    "options": ""
                }
            }
        }
    },
    {
        "$match": {
            "participantData.userStatus": {
                "$ne": "TEST"
            }
        }
    },
    {
        "$match": {
            "$and": [
                {
                    "participantData.email": {
                        "$not": {
                            "$regularExpression": {
                                "pattern": "deleted",
                                "options": ""
                            }
                        }
                    }
                },
                {
                    "participantData.email": {
                        "$not": {
                            "$regularExpression": {
                                "pattern": "@smit\\.fit$",
                                "options": ""
                            }
                        }
                    }
                }
            ]
        }
    },
    {
        "$lookup": {
            "from": "participantBaselineAndFollowupData",
            "localField": "userId",
            "foreignField": "participantId",
            "as": "baselineData"
        }
    },
    {
        "$unwind": "$baselineData"
    },
    {
        "$lookup": {
            "from": "blood_glucose",
            "localField": "userId",
            "foreignField": "participantId",
            "as": "glucoseData"
        }
    },
    {
        "$unwind": "$glucoseData\", \"preserveNullAndEmptyArrays\" : true}"
    },
    {
        "$project": {
            "subscriptionId": "$_id",
            "baselineId": "$baselineData._id",
            "userId": 1,
            "startDate": 1,
            "programStartDate": "$baselineData.programStartDate",
            "planCode1": "$subscriptionPlan.programCode",
            "journeyStatus": "$journeyTrackerObject.status",
            "planCode2": "$baselineData.programCode",
            "followUps": "$baselineData.followUps",
            "glucoseData": 1
        }
    },
    {
        "$match": {
            "$and": [
                {
                    "$expr": {
                        "$and": [
                            {
                                "$eq": [
                                    "$planCode1",
                                    "$planCode2"
                                ]
                            },
                            {
                                "$eq": [
                                    "$startDate",
                                    "$programStartDate"
                                ]
                            }
                        ]
                    }
                }
            ]
        }
    },
    {
        "$group": {
            "_id": {
                "userId": "$userId",
                "startDate": "$startDate",
                "planCode1": "$planCode1"
            },
            "userId": {
                "$last": "$userId"
            },
            "baselineId": {
                "$last": "$baselineId"
            },
            "startDate": {
                "$last": "$startDate"
            },
            "programStartDate": {
                "$last": "$programStartDate"
            },
            "subscriptionId": {
                "$last": "$subscriptionId"
            },
            "journeyStatus": {
                "$last": "$journeyStatus"
            },
            "followUps": {
                "$last": "$followUps"
            },
            "glucoseData": {
                "$push": "$glucoseData"
            }
        }
    },
    {
        "$project": {
            "userId": 1,
            "baselineId": 1,
            "startDate": 1,
            "programStartDate": 1,
            "subscriptionId": 1,
            "journeyStatus": 1,
            "followUps": 1,
            "field": {
                "$add": [
                    "$_id.startDate",
                    {
                        "$multiply": [
                            14,
                            24,
                            60,
                            60,
                            1000
                        ]
                    }
                ]
            },
            "glucoseData": {
                "$filter": {
                    "input": "$glucoseData",
                    "as": "glucose",
                    "cond": {
                        "$and": [
                            {
                                "$lt": [
                                    "$$glucose.date",
                                    {
                                        "$add": [
                                            "$_id.startDate",
                                            {
                                                "$multiply": [
                                                    14,
                                                    24,
                                                    60,
                                                    60,
                                                    1000
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "$gte": [
                                    "$$glucose.date",
                                    "$_id.startDate"
                                ]
                            }
                        ]
                    }
                }
            }
        }
    },
    {
        "$project": {
            "userId": 1,
            "baselineId": 1,
            "startDate": 1,
            "programStartDate": 1,
            "subscriptionId": 1,
            "journeyStatus": 1,
            "followUps": 1,
            "glucoseData": {
                "$map": {
                    "input": "$glucoseData",
                    "as": "obj",
                    "in": {
                        "participantId": "$$obj.participantId",
                        "reading": "$$obj.reading",
                        "date": "$$obj.date"
                    }
                }
            }
        }
    }
]
[
    {
        "$match": {
            "participantId": ObjectId("6481b5f27050063532a46021")
        }
    },
    {
        "$match": {
            "date": { "$gt": { "$add": [ISODate("2023-06-01T00:00:00.000Z"), { "$multiply": [14, 24, 60, 60, 1000] }] } }
        }
    }
]
4月11日更新补丁
大侠立志传 1948980 RSS 新闻
9h
V1.1.0411b61更新补丁
【修复】
1、修复了带着月咏樱羽进入月老祠会导致主角模型消失的问题
.button-container:not(.never-hide):has(a:not([href])) {
  display: none;
}
import requests  
  
def get_data_from_endpoint(host, endpoint, headers):  
    url = f"{host}/{endpoint}"  
    response = requests.get(url, headers=headers)  
      
    if response.status_code == 200:  
        return response.json()  
    else:  
        return f"Error: {response.status_code}"  
  
# Replace with your actual host, endpoint, and headers  
host = "http://172.24.44.8"  
endpoint = "relevancy?application=ResourceAdvisor&utterance=Hello"  
headers = {"Host": "ds-colpilot-nonprod.sb.se.com"}  
print()
print(get_data_from_endpoint(host, endpoint, headers))  
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
int main(){
    int x=0;
    double y=0;
    char c=0;
    char name[50];

    scanf("%lf",&y);
    scanf(" %c",&c);
    scanf("%s",name);

    printf("y=%lf\nc=%c\n",y,c);
    printf("name = %s",name);

return 0;


}
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
int main(){
    double age=0;
    printf("enter your age:");
    scanf("%lf",&age);

    printf("your age is:%lf\n",age);

    int x=0;
    double y=0;
    char c;

    scanf("%d%lf",&x,&y);
    printf("x=%d,y=%lf\n",x,y);

    printf("Input for second data:\n");
    scanf("%d",&x);
    //fflush(stdin);
    scanf("%lf",&y);
    printf("x=%d\ny=%lf",x,y);

    printf("input charactor:\n");
    scanf("%c",&c);
    printf("%c",c);


return 0;


}
import type { PageServerLoad } from './$types'

export const load: PageServerLoad = async () => {
  return {
    page_server_data: { message: 'hello world' },
  }
}
import type { PageLoad } from './$types'

export const load: PageLoad = async ({ parent, data }) => {
  await parent()
  let { page_server_data } = data
  return {
    page_server_data,
    page_data: { message: 'hello world' },
  }
}
// Does not send any data, but just tests the payload 
Boolean testPayloadFormat = false;

// Configuration
String namedCredentialName    = 'TDX_DC_ORG';
String ingestionApiName       = 'Smart_Bill';
String ingestionApiObjectName = 'Smart_Bill';

// Create a payload
String streamingIngestionPayload = JSON.serializePretty(new Map<String,List<Map<String,Object>>>{
    'data' => new List<Map<String,Object>>{
        new Map<String,Object>{
            'Amount'       => 'id',
            'Id'           => utl.Rst.Guid(),
            'UUID'         => utl.Rst.Guid(),
            'CreatedDate'  => String.valueOf(Datetime.now()),
            'Name'         => JSON.serialize([SELECT Id FROM User WHERE Id = :UserInfo.getUserId()]),
            'Invoice_Date' => String.valueOf(Date.today())
        }
    }
});
 
// Create the request endpoint based on the NC and Named Credential details
HttpRequest request = new HttpRequest();
request.setEndPoint(String.format(
    'callout:{0}/api/v1/ingest/sources/{1}/{2}{3}',
    new String[]{
        namedCredentialName,
        ingestionApiName,
        ingestionApiObjectName,
        (testPayloadFormat) ? '/actions/test' : ''
    }
));
request.setHeader('Content-Type','application/json');
request.setMethod('POST');
request.setBody(streamingIngestionPayload);
 
// Execute
HttpResponse res = new HTTP().send(request);
System.debug(res.getStatusCode());
System.debug(res.getBody());
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
int main(){

int x = 3;
double y = 3.589;
float f = 5.6;
char c = 'A';
_Bool b = true;//stdbool.h
char name[] = "HT Prince";

printf("x = %d\ny = %.2lf\nf = %f\nc = %c\nb = %d\nname = %s\n",x,y,f,c,b,name);
printf("Hello your name is: %s",name);

return 0;


}
#include<stdio.h>
#include<stdlib.h>
#define PI 3.14

int main(){

const int x=5;
double y=3.0;

y=PI;

printf("x=%d\n",x);
printf("y=%lf\n",y);

printf("the address of y in memory is:%p",&y);


return 0;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<style type='text/css'>
#random-posts img{display:block;margin:0;margin-right:10px;padding:0;width:72px;height:72px;border:1px solid #f5f5f5;overflow:hidden;float:left}
#random-posts img:hover{opacity:0.6;}
ul#random-posts{list-style:none;margin:0;padding:5px 0 0;overflow:hidden;border-top:none;}
#random-posts a{color:#000;transition:all .3s;display:block}
#random-posts li:hover a,#random-posts a:hover{color:#0088ff;}
.random-summary{font-size:13px;color:999}
#random-posts li{margin:0;padding: 0px 0px 10px 0px;min-height:65px;position:relative;border-bottom:1px solid #f5f5f5;transition:all .3s;}
</style>
<ul id='random-posts'>
<script type='text/javaScript'>
var randomposts_number = 5;
var randomposts_chars = 0;
var randomposts_details = 'no';
var randomposts_comments = 'Comments';
var randomposts_commentsd = 'Comments Disabled';
var randomposts_current = [];
var total_randomposts = 0;
var randomposts_current = new Array(randomposts_number);
function randomposts(json) {
    total_randomposts = json.feed.openSearch$totalResults.$t
}
document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&max-results=0&callback=randomposts\"><\/script>');
function getvalue() {
    for (var i = 0; i < randomposts_number; i++) {
        var found = false;
        var rndValue = get_random();
        for (var j = 0; j < randomposts_current.length; j++) {
            if (randomposts_current[j] == rndValue) {
                found = true;
                break
            }
        };
        if (found) {
            i--
        } else {
            randomposts_current[i] = rndValue
        }
    }
};
function get_random() {
    var ranNum = 1 + Math.round(Math.random() * (total_randomposts - 1));
    return ranNum
};
</script>
<script type='text/javaScript'>
function random_posts(json) {
    for (var i = 0; i < randomposts_number; i++) {
        var entry = json.feed.entry[i];
        var randompoststitle = entry.title.$t;
        if ('content' in entry) {
            var randompostsnippet = entry.content.$t
        } else {
            if ('summary' in entry) {
                var randompostsnippet = entry.summary.$t
            } else {
                var randompostsnippet = "";
            }
        };
        for (var j = 0; j < entry.link.length; j++) {
            if ('thr$total' in entry) {
                var randomposts_commentsnum = entry.thr$total.$t + ' ' + randomposts_comments
            } else {
                randomposts_commentsnum = randomposts_commentsd
            }; if (entry.link[j].rel == 'alternate') {
                var randompostsurl = entry.link[j].href;
                var randomposts_date = entry.published.$t;
                if ('media$thumbnail' in entry) {
                    var randompoststhumb = entry.media$thumbnail.url
                } else {
                    randompoststhumb = "https://2.bp.blogspot.com/-F1lTdmXTr0Y/VmpR_HBcVyI/AAAAAAAAGa8/a2_2T-p3AKM/s1600/bungfrangki_no_image_100.png"
                }
            }
        };
        document.write('<li>');
        document.write('<a href="' + randompostsurl + '" rel="nofollow"><img alt="' + randompoststitle + '" src="' + randompoststhumb + '" width="' + 72 + '" height="' + 72 + '"/></a>');
        document.write('<div><a href="' + randompostsurl + '" rel="nofollow">' + randompoststitle + '</a></div>');
        if (randomposts_details == 'yes') {
            document.write('<span><div  class="random-info">' + randomposts_date.substring(8, 10) + '.' + randomposts_date.substring(5, 7) + '.' + randomposts_date.substring(0, 4) + ' - ' + randomposts_commentsnum) + '</div></span>'
        };
        document.write('<br/><div class="random-summary">' + randomposts_snippet + '</div><div style="clear:both"></div></li>')
    }
};
getvalue();
for (var i = 0; i < randomposts_number; i++) {
    document.write('<script type=\"text/javascript\" src=\"https://www.kurazone.net/feeds/posts/default?alt=json-in-script&start-index=' + randomposts_current[i] + '&max-results=1&callback=random_posts\"><\/script>')
};
</script>
</ul>
<div class='clear'/>
</div>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

int main()
{
  int i1;
  printf("i1=%d\n",i1);

  i1 = 5;
  printf("i1=%d\n",i1);

  i1 = -3;
  printf("i1=%d\n",i1);

  i1 = 3.5;
  printf("i1=%d\n",i1);

  double d1 = 3.5;
  printf("d1=%lf\n",d1);

  d1=0;
  printf("d1=%lf\n",d1);

  float f1 = 3.7;
  printf("f1=%f\n",f1);

  char c = 'A';
  printf("%c\n",c);

  c=65;
  printf("%c\n",c);

  int code ='A';
  printf("%d\n\n",code);

  _Bool b=0;
  printf("b=%d\n",b);

  b=1;
  printf("b=%d\n",b);

  b=2;
  printf("b=%d\n",b);

  b=-1;
  printf("b=%d\n",b);

  b=false;
  printf("using keywords b=%d\n",b);
  b=true;
  printf("using keywords b=%d\n\n",b);

  char name[]="Tharaka Weerasena";
  printf("%s\n",name);

  int x = sizeof (int);
  printf("number of bytes of an int:%d bytes\n",x);
  printf("number of bits:4*8=32 bits\n");
  printf("we can store 2^32 in an integer"); //429496796


    system("pause");
    return 0;
}
#Nonprod
curl -k -H "Host: ds-colpilot-nonprod.sb.se.com" "http://172.24.44.8/relevancy?application=ResourceAdvisor&utterance=Hello"

#PreProd
curl -k -H "Host: ds-colpilot-preprod.sb.se.com" "http://172.24.52.8/relevancy?application=ResourceAdvisor&utterance=Hello"

#Prod
curl -k -H "Host: ds-copilot-prod.sb.se.com" "http://172.24.52.8/relevancy?application=ResourceAdvisor&utterance=Hello"
import { useEffect, useState } from "react";
import { useSupabaseClient } from "@supabase/auth-helpers-react";
import { HeadingLink, MinimalPage, PageHeading, Spinner } from "ui";
import type { Database } from "../../../types";
import dayjs from "dayjs";

const ShiftTable = () => {
  const [usersOnShift, setUsersOnShift] = useState<
    Array<{ user: string; shift_start: string | null }>
  >([]);
  const [loading, setLoading] = useState(true);
  const [error, setError] = useState("");
  const [offlineUserCount, setOfflineUserCount] = useState(0);
  const supabaseClient = useSupabaseClient<Database>();

  useEffect(() => {
    const fetchUsers = async () => {
      setLoading(true);
      setError("");

      try {
        // Fetch users on shift and their emails
        const { data: usersOnShiftData, error: onShiftError } =
          await supabaseClient
            .from("UserLastWorkedOn")
            .select("shift_start, user, users_view (email)")
            .not("shift_start", "is", null);

        // Fetch count of users not on shift (offline users)
        const { count: offlineCount, error: offShiftError } =
          await supabaseClient
            .from("UserLastWorkedOn")
            .select("user", { count: "exact" })
            .is("shift_start", null);

        if (onShiftError || offShiftError) {
          setError(
            onShiftError?.message ||
              offShiftError?.message ||
              "Failed to fetch user shift data"
          );
          return;
        }

        // Sort the users on shift by their email address
        const sortedUsersOnShift = (usersOnShiftData ?? [])
          .map((user) => ({
            shift_start: user.shift_start,
            user: Array.isArray(user.users_view)
              ? user.users_view[0].email
              : user.users_view?.email ?? user.user,
          }))
          .sort((a, b) => a.user.localeCompare(b.user));

        setUsersOnShift(sortedUsersOnShift);
        setOfflineUserCount(offlineCount ?? 0);
      } catch (err) {
        setError("Failed to fetch user data");
        console.error(err);
      } finally {
        setLoading(false);
      }
    };

    fetchUsers();
  }, [supabaseClient]);

  return (
    <MinimalPage
      pageTitle="Shift Table | Email Interface"
      pageDescription="Spot Ship Email Interface | Shift Table"
      commandPrompt
    >
      <div className="flex w-full flex-col items-center justify-center">
        <HeadingLink icon="back" text="Home" href="/secure/home" />
        <PageHeading text="Spot Ship Shift Table" />
        <div className="mb-4 text-sm text-gray-400">
          {usersOnShift.length} user(s) currently on shift. Offline users:{" "}
          {offlineUserCount}.
        </div>
        {loading ? (
          <Spinner />
        ) : error ? (
          <p className="text-red-500">Error: {error}</p>
        ) : usersOnShift.length ? (
          <div className="overflow-hidden overflow-x-auto rounded-3xl border-transparent shadow-lg">
            <table className="table-auto rounded-xl bg-gray-800">
              <thead className="bg-gray-700 text-gray-400">
                <tr>
                  <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">
                    User Email
                  </th>
                  <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">
                    Shift Started
                  </th>
                </tr>
              </thead>
              <tbody className="divide-y divide-gray-700">
                {usersOnShift.map((user, index) => (
                  <tr key={index}>
                    <td className="whitespace-nowrap px-6 py-4 text-sm">
                      {user.user}
                    </td>
                    <td className="whitespace-nowrap px-6 py-4 text-sm">
                      {dayjs(user.shift_start).format("DD-MM-YYYY | HH:mm")}
                    </td>
                  </tr>
                ))}
              </tbody>
            </table>
          </div>
        ) : (
          <p className="text-gray-400">No users are currently on shift</p>
        )}
      </div>
    </MinimalPage>
  );
};

export default ShiftTable;
// Apply force - More up assist depending on y position
var assistPoint = Mathf.InverseLerp(0, _maxY, _rb.position.y);
var assistAmount = Mathf.Lerp(_maxUpAssist, 0, assistPoint);
var forceDir = -transform.forward * _forceAmount + Vector3.up * assistAmount;
if (_rb.position.y > _maxY) forceDir.y = Mathf.Min(0, forceDir.y);
_rb.AddForce(forceDir);

// Determine the additional torque to apply when swapping direction
var angularPoint = Mathf.InverseLerp(0, _maxAngularVelocity, Mathf.Abs(_rb.angularVelocity.z));
var amount = Mathf.Lerp(0, _maxTorqueBonus, angularPoint);
var torque = _torque + amount;

// Apply torque
var dir = Vector3.Dot(_spawnPoint.forward, Vector3.right) < 0 ? Vector3.back : Vector3.forward;
_rb.AddTorque(dir * torque);
Private Sub CreateMyListView()
    ' Create a new ListView control.
    Dim listView1 As New ListView()
    listView1.Bounds = New Rectangle(New Point(10, 10), New Size(300, 200))

    ' Set the view to show details.
    listView1.View = View.Details
    ' Allow the user to edit item text.
    listView1.LabelEdit = True
    ' Allow the user to rearrange columns.
    listView1.AllowColumnReorder = True
    ' Display check boxes.
    listView1.CheckBoxes = True
    ' Select the item and subitems when selection is made.
    listView1.FullRowSelect = True
    ' Display grid lines.
    listView1.GridLines = True
    ' Sort the items in the list in ascending order.
    listView1.Sorting = SortOrder.Ascending

    ' Create three items and three sets of subitems for each item.
    Dim item1 As New ListViewItem("item1", 0)
    ' Place a check mark next to the item.
    item1.Checked = True
    item1.SubItems.Add("1")
    item1.SubItems.Add("2")
    item1.SubItems.Add("3")
    Dim item2 As New ListViewItem("item2", 1)
    item2.SubItems.Add("4")
    item2.SubItems.Add("5")
    item2.SubItems.Add("6")
    Dim item3 As New ListViewItem("item3", 0)
    ' Place a check mark next to the item.
    item3.Checked = True
    item3.SubItems.Add("7")
    item3.SubItems.Add("8")
    item3.SubItems.Add("9")

    ' Create columns for the items and subitems.
    ' Width of -2 indicates auto-size.
    listView1.Columns.Add("Item Column", -2, HorizontalAlignment.Left)
    listView1.Columns.Add("Column 2", -2, HorizontalAlignment.Left)
    listView1.Columns.Add("Column 3", -2, HorizontalAlignment.Left)
    listView1.Columns.Add("Column 4", -2, HorizontalAlignment.Center)

    'Add the items to the ListView.
    listView1.Items.AddRange(New ListViewItem() {item1, item2, item3})

    ' Create two ImageList objects.
    Dim imageListSmall As New ImageList()
    Dim imageListLarge As New ImageList()

    ' Initialize the ImageList objects with bitmaps.
    imageListSmall.Images.Add(Bitmap.FromFile("C:\MySmallImage1.bmp"))
    imageListSmall.Images.Add(Bitmap.FromFile("C:\MySmallImage2.bmp"))
    imageListLarge.Images.Add(Bitmap.FromFile("C:\MyLargeImage1.bmp"))
    imageListLarge.Images.Add(Bitmap.FromFile("C:\MyLargeImage2.bmp"))

    'Assign the ImageList objects to the ListView.
    listView1.LargeImageList = imageListLarge
    listView1.SmallImageList = imageListSmall

    ' Add the ListView to the control collection.
    Me.Controls.Add(listView1)
End Sub
' Declare the Listview object.
Friend WithEvents myListView As System.Windows.Forms.ListView

' Initialize the ListView object with subitems of a different
' style than the default styles for the ListView.
Private Sub InitializeListView()

    ' Set the Location, View and Width properties for the 
    ' ListView object. 
    myListView = New ListView
    With (myListView)
        .Location = New System.Drawing.Point(20, 20)

        ' The View property must be set to Details for the 
        ' subitems to be visible.
        .View = View.Details
        .Width = 250
    End With

    ' Each SubItem object requires a column, so add three columns.
    Me.myListView.Columns.Add("Key", 50, HorizontalAlignment.Left)
    Me.myListView.Columns.Add("A", 100, HorizontalAlignment.Left)
    Me.myListView.Columns.Add("B", 100, HorizontalAlignment.Left)

    ' Add a ListItem object to the ListView.
    Dim entryListItem As ListViewItem = myListView.Items.Add("Items")

    ' Set UseItemStyleForSubItems property to false to change 
    ' look of subitems.
    entryListItem.UseItemStyleForSubItems = False

    ' Add the expense subitem.
    Dim expenseItem As ListViewItem.ListViewSubItem = _
        entryListItem.SubItems.Add("Expense")

    ' Change the expenseItem object's color and font.
    expenseItem.ForeColor = System.Drawing.Color.Red
    expenseItem.Font = New System.Drawing.Font _
        ("Arial", 10, System.Drawing.FontStyle.Italic)

    ' Add a subitem called revenueItem 
    Dim revenueItem As ListViewItem.ListViewSubItem = _
        entryListItem.SubItems.Add("Revenue")

    ' Change the revenueItem object's color and font.
    revenueItem.ForeColor = System.Drawing.Color.Blue
    revenueItem.Font = New System.Drawing.Font _
        ("Times New Roman", 10, System.Drawing.FontStyle.Bold)

    ' Add the ListView to the form.
    Me.Controls.Add(Me.myListView)
End Sub
public class ListView : System.Windows.Forms.Control
background-color: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
function scrolling(event) {
  let scrollPercent =
    (event.target.scrollTop /
      (scrollableElement.value.scrollHeight -
        scrollableElement.value.clientHeight)) *
    100;
}

window.addEventListener("scroll", function () {
  let st = window.pageYOffset || document.documentElement.scrollTop;
  if (st > window.innerHeight / 2 && st > lastScrollTop) {
    isMenuOpen.value = false;
  } else if (st > window.innerHeight / 2 && st < lastScrollTop) {
    isMenuOpen.value = true;
  }
  lastScrollTop = st <= 0 ? 0 : st;
});

function storeTouchPosition() {
  initialTouchPosition.value = event.touches[0].clientY;
  // initialBottomPosition.value =
  //   draggableElement.value.getBoundingClientRect().bottom;
}
function resizeSublinks() {
  document.body.style.overflow = "hidden";
  let delta = event.touches[0].clientY - initialTouchPosition.value;
  let maxScrollDistance = draggableElement.value.scrollHeight - 130;
  let top = draggableElement.value.getBoundingClientRect().top;

  if (delta > 0) {
    //element is being dragged down
    if (draggableElement.value && top <= 392) {
      draggableElement.value.style.transform = `translateY(${delta}px)`;
    }
  } else if (draggableElement.value && delta * -1 <= maxScrollDistance) {
    draggableElement.value.style.transform = `translateY(${delta}px)`;
  }
}
function stopDragging() {
  document.body.style.overflow = "auto";
  initialTouchPosition.value = null;
}
def generate_file(file_size_mb, file_name):
    file_size = file_size_mb * 1024 * 1024
    with open(file_name, 'wb') as f:
        f.write(b'\b' * file_size)


generate_file(file_size_mb=2, file_name='test.test')
<!-- Google tag (gtag.js) -->

<script async src="https://www.googletagmanager.com/gtag/js?id=G-HTKNHG"></script>
3
<script>
4
  window.dataLayer = window.dataLayer || [];
5
  function gtag(){dataLayer.push(arguments);}

  gtag('js', new Date());

​
8
  gtag('config', 'G-H34TKNH5G8');

</script>
import mongoose from "mongoose"
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import {ERC20} from "solmate/tokens/ERC20.sol";

contract MyToken is ERC20 {
    constructor(
        string memory name,
        string memory symbol,
        uint8 decimals,
        uint256 initialSupply
    ) ERC20(name, symbol, decimals) {
        _mint(msg.sender, initialSupply);
    }
}
$ forge create --rpc-url <your_rpc_url> \
    --constructor-args "ForgeUSD" "FUSD" 18 1000000000000000000000 \
    --private-key <your_private_key> \
    --etherscan-api-key <your_etherscan_api_key> \
    --verify \
    src/MyToken.sol:MyToken
# Enable gzip compression for text-based files
http {
   gzip on;
   gzip_types text/plain text/css text/javascript;
}
$(document).ready(function () {
	$('a[data-scroll]').click(function () {
		$('html, body').animate(
			{
				scrollTop: $('.conatct-us').offset().top,
			},
			1000,
		);
	});
});
User Name
anmol.tyagi
Password
|Kzkd#OB;|5jjp?
Notes
account id- satmodo username-
anmol.tyagi-at-877029150039
password-
fYJeCK78H9C5XDaAX92B8+lEv0h0X1+GgC5dt7cYCVU=


login : 
anmol.tyagi
pass: 
Anmol.t2b.tyagi@123

Server 2 branch name:

master-> master-no-cron
staging-> stgaing-no-cron

stop backend process:

sudo kill PID
<!DOCTYPE html>
<html>
<head>
<style>
.button {
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.button1 {background-color: #04AA6D;} /* Green */
.button2 {background-color: #008CBA;} /* Blue */
</style>
</head>
<body>

<button class="button button1">Green</button>
<button class="button button2">Blue</button>

</body>
</html>
<div>
			<h1>GeeksforGeeks</h1>
			<h3>Click on the button to see image</h3>
			<!-- img element without src attribute -->
			<img id="image" src="" />
		</div>
		<button type="button" onclick="show()" id="btnID">
			dixwell
		</button>	
		<script>
			function show() {
				/* Get image and change value 
				of src attribute */
				let image = document.getElementById("image");
				image.src = "495+Dixwell+Avenue.jpeg"
				document.getElementById("btnID")
					.style.display = "none";
			}
		</script>
import { useEffect, useState } from "react";
import { useSupabaseClient } from "@supabase/auth-helpers-react";
import { HeadingLink, MinimalPage, PageHeading, Spinner } from "ui";
import type { Database } from "../../../types";
import dayjs from "dayjs";

const ShiftTable = () => {
  const [usersOnShift, setUsersOnShift] = useState<
    Array<{ user: string; shift_start: string | null }>
  >([]);
  const [loading, setLoading] = useState(true);
  const [error, setError] = useState("");
  const supabaseClient = useSupabaseClient<Database>();

  useEffect(() => {
    const fetchUsersOnShift = async () => {
      setLoading(true);
      try {
        const { data: usersData, error: usersError } = await supabaseClient
          .from("UserLastWorkedOn")
          .select("shift_start, user, users_view (email)")
          .not("shift_start", "is", null);

        if (usersError) {
          setError(usersError.message ?? "Failed to fetch user shift data");
          console.error(usersError);
        }

        const mappedUsers = usersData?.map((user) => {
          const mappedUser: { user: string; shift_start: string | null } = {
            shift_start: user.shift_start,
            user: Array.isArray(user.users_view)
              ? user.users_view[0].email
              : user.users_view?.email ?? user.user,
          };
          return mappedUser;
        });

        setUsersOnShift(mappedUsers ?? []);
      } catch (err) {
        setError("Failed to fetch user shift data");
        console.error(err);
      } finally {
        setLoading(false);
      }
    };

    fetchUsersOnShift();
  }, [supabaseClient]);

  return (
    <MinimalPage
      pageTitle="Shift Table | Email Interface"
      pageDescription="Spot Ship Email Interface | Shift Table"
      commandPrompt
    >
      <div className="w-full">
        <HeadingLink icon="back" text="Home" href="/secure/home" />
      </div>
      <PageHeading text="Spot Ship Shift Table" />
      <div className="flex w-full flex-col">
        {loading ? (
          <Spinner />
        ) : error ? (
          <p className="text-red-500">Error: {error}</p>
        ) : usersOnShift.length ? (
          <table className="mt-4 min-w-full">
            <thead>
              <tr>
                <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500">
                  User Email
                </th>
                <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500">
                  Shift Started
                </th>
              </tr>
            </thead>
            <tbody className="divide-white-200 divide-x ">
              {usersOnShift.map((user, index) => (
                <tr key={index}>
                  <td className=" text-white-500 px-6 py-4 text-sm">
                    {user.user}
                  </td>
                  <td className=" text-white-500 px-6 py-4 text-sm">
                    {dayjs(user.shift_start).format("DD-MM-YYYY | HH:mm")}
                  </td>
                </tr>
              ))}
            </tbody>
          </table>
        ) : (
          <p>No users are currently on shift</p>
        )}
      </div>
    </MinimalPage>
  );
};

export default ShiftTable;
abstract class Shape{
    abstract void draw();
    int size;
    abstract void remove();
}

class Rectangle extends Shape {

    void draw(){
        System.out.println("Drawing a rectangle "+size);
    }
    void remove(){
        System.out.println("removing what we drew");
    }

}


public class Second {
    public static void main(String[] args) {
        Rectangle obj=new Rectangle();
        obj.draw();
        obj.remove();
    }
}
1. git branch
2. git checkout ... (dev oder master)
3. git pull origin dev (master) 
4. git add .(oder separat alle Dateien mit dem Pfad)
5. git commit - m 'dein commit hier'
6. git tag -a TAGNUMMER -m 'tagnummer'
7. git push --tags origin dev (master).
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
    <actionCalls>
        <name>Email_Change_Confirmation</name>
        <label>Email Change Confirmation</label>
        <locationX>176</locationX>
        <locationY>335</locationY>
        <actionName>emailSimple</actionName>
        <actionType>emailSimple</actionType>
        <flowTransactionModel>CurrentTransaction</flowTransactionModel>
        <inputParameters>
            <name>emailBody</name>
            <value>
                <elementReference>EmailChangeTemplate</elementReference>
            </value>
        </inputParameters>
        <inputParameters>
            <name>emailAddresses</name>
            <value>
                <elementReference>$Record__Prior.Email</elementReference>
            </value>
        </inputParameters>
        <inputParameters>
            <name>sendRichBody</name>
            <value>
                <booleanValue>true</booleanValue>
            </value>
        </inputParameters>
        <inputParameters>
            <name>senderAddress</name>
            <value>
                <stringValue>noreply_energy@britishgas.co.uk</stringValue>
            </value>
        </inputParameters>
        <inputParameters>
            <name>senderType</name>
            <value>
                <stringValue>OrgWideEmailAddress</stringValue>
            </value>
        </inputParameters>
        <inputParameters>
            <name>emailSubject</name>
            <value>
                <stringValue>Please activate your new email address</stringValue>
            </value>
        </inputParameters>
    </actionCalls>
    <apiVersion>56.0</apiVersion>
    <environments>Default</environments>
    <interviewLabel>Email Change Confirmation {!$Flow.CurrentDateTime}</interviewLabel>
    <label>Email Change Confirmation</label>
    <processMetadataValues>
        <name>BuilderType</name>
        <value>
            <stringValue>LightningFlowBuilder</stringValue>
        </value>
    </processMetadataValues>
    <processMetadataValues>
        <name>CanvasMode</name>
        <value>
            <stringValue>AUTO_LAYOUT_CANVAS</stringValue>
        </value>
    </processMetadataValues>
    <processMetadataValues>
        <name>OriginBuilderType</name>
        <value>
            <stringValue>LightningFlowBuilder</stringValue>
        </value>
    </processMetadataValues>
    <processType>AutoLaunchedFlow</processType>
    <start>
        <locationX>50</locationX>
        <locationY>0</locationY>
        <connector>
            <targetReference>Email_Change_Confirmation</targetReference>
        </connector>
        <filterFormula>AND(NOT(ISBLANK({!$Record__Prior.Email})),NOT(ISBLANK({!$Record.Email})),ISCHANGED({!$Record.Email}) )</filterFormula>
        <object>Contact</object>
        <recordTriggerType>Update</recordTriggerType>
        <triggerType>RecordAfterSave</triggerType>
    </start>
    <status>Active</status>
    <textTemplates>
        <name>EmailChangeTemplate</name>
        <isViewedAsPlainText>false</isViewedAsPlainText>
        <text>&lt;p style=&quot;text-align: right;&quot;&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 18px; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif; color: rgb(0, 0, 0);&quot;&gt;You changed your email address&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 16px; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif; color: rgb(0, 0, 0);&quot;&gt;Please set up&amp;nbsp;your&amp;nbsp;new password&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 18px; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif; color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;Hello {!$Record.FirstName},&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;Thanks&amp;nbsp;for updating your email address to {!$Record.Email}.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;When you next&amp;nbsp;log in,&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.britishgas.co.uk/identity&quot; rel=&quot;noopener noreferrer&quot; target=&quot;_blank&quot;&gt;https://www.britishgas.co.uk/identity&lt;/a&gt; &lt;span style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;you’ll need to&amp;nbsp;set up a new&amp;nbsp;password to get started.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;Didn’t request this?&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;If&amp;nbsp;you didn’t&amp;nbsp;ask us to make&amp;nbsp;this change,&amp;nbsp;please&amp;nbsp;get in touch.&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.britishgas.co.uk/energy/contact-us&quot; rel=&quot;noopener noreferrer&quot; target=&quot;_blank&quot; style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;https://www.britishgas.co.uk/energy/contact-us&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;strong style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;Just a reminder:&lt;/strong&gt;&lt;span style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;Never share your password or security questions with anyone&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;Create passwords that are hard to guess and don’t use personal information&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;Use different passwords for each of your online accounts&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;Your passwords&amp;nbsp;need:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;To be between 8 and 32 characters&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;To&amp;nbsp;contain at least one upper case&amp;nbsp;letter and&amp;nbsp;one lower case letter&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;To contain at least one number&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;Symbols are optional, but are a good way to make a password more secure&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif;&quot;&gt;Th&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif; color: rgb(68, 68, 68);&quot;&gt;anks for being with us for your energy,&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; font-family: Calibri, Calibri_EmbeddedFont, Calibri_MSFontService, sans-serif; color: rgb(68, 68, 68);&quot;&gt;Your British Gas Energy Team&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</text>
    </textTemplates>
</Flow>
<ul class="context-menu" data-bind="visible: contextMenu, , style: { left: contextMenuPosition().x + 'px', top: contextMenuPosition().y + 'px' }">
    <li class="context-link" data-bind="click: openInNewTab">
        <span data-bind="attr: { class: 'fa fa-external-link-alt' }"></span>
        <span class="new-tab" data-bind="i18n: 'Open in a new tab'"></span>
    </li>
    <hr>
    <li class="context-link" data-bind="click: copyInClipboard">
        <span data-bind="attr: { class: 'fa fa-copy' }"></span>
        <span class="copy-link" data-bind="i18n: 'Copy in clipboard'"></span>
    </li>
    <li class="context-link" data-bind="click: saveLinkAs">
        <span data-bind="attr: { class: 'fa fa-download' }"></span>
        <span class="save-link" data-bind="i18n: 'Save link as'"></span>
    </li>
    <li class="context-link" data-bind="click: goBack">
        <span data-bind="attr: { class: 'fa fa-arrow-left' }"></span>
        <span class="go-back" data-bind="i18n: 'Back'"></span>
    </li>
    <li class="context-link" data-bind="click: goForward">
        <span data-bind="attr: { class: 'fa fa-arrow-right' }"></span>
        <span class="go-forward" data-bind="i18n: 'Forward'"></span>
    </li>
    <hr>
    <li class="context-link" data-bind="click: refreshPage">
        <span data-bind="attr: { class: 'fa fa-sync' }"></span>
        <span class="refresh-page" data-bind="i18n: 'Refresh'"></span>
    </li>
</ul>
$(document).ready(function ($) {
	$('body .description-form').on(
		'change',
		'.gchoice input[type="radio"]',
		function () {
			if ($(this).is(':checked')) {
				$(this)
					.closest(
						'.gform_page:nth-child(1),.gform_page:nth-child(2),.gform_page:nth-child(3)',
					)
					.find('.gform_next_button')
					.click();
			}
		},
	);
});
//Here is signleton - that means you can create an object of a class outside it

class singleton{
  
  static let shared = singleton()
  init(){} //(Optional to do it or not)
  
  let temp = 5

}

//Usage

viewDidLoad(){
  let num = singleton.shared.temp
  
  //but also you can create object
  let obj = singleton()
  let num = obj.temp
}


//Here is Signleton - that means you cannot create an object of a class outside it

class Singleton{
  
  static let shared = singleton()
  private init(){} //(Optional to do it or not)
  
  let temp = 5

}

//Usage

viewDidLoad(){
  let num = singleton.shared.temp
  
  //but you cannot create object
  //let obj = singleton()
  //let num = obj.temp
}
//replace any element of an array with the provided element(prevoius element will be deleted)
#include <stdio.h>

int main() {

    int size, element, pos;
    
    // Input the size of the array
    printf("Enter size of array: ");
    scanf("%d", &size);

    int arr[size];

    // Input array elements
    printf("Enter elements of array:\n");
    for (int i = 0; i < size; i++) {
        scanf("%d", &arr[i]);
    }

    // Input the number to be inserted
    printf("Enter the number to insert: ");
    scanf("%d", &element);


    // get the position from user and authenticate it
    printf("enter the position to insert (0 to %d): ", size - 1);
    scanf("%d",&pos);
    if(pos < 0 || pos >= size){
        printf("\nInvalid Position");
        return 1;
        }

    arr[pos] = element;

    // Print the updated array
    printf("Array after insertion:\n");
    for (int i = 0; i < size; i++) {
        printf("%d ", arr[i]);
    }

    return 0;
}
star

Fri Apr 12 2024 05:37:53 GMT+0000 (Coordinated Universal Time)

@thanuj #sql

star

Fri Apr 12 2024 04:53:31 GMT+0000 (Coordinated Universal Time) https://dev.to/papercoding22/adapter-pattern-with-react-29bg

@temp

star

Fri Apr 12 2024 04:52:39 GMT+0000 (Coordinated Universal Time)

@HTPrince

star

Fri Apr 12 2024 04:13:43 GMT+0000 (Coordinated Universal Time) https://freedium.cfd/https://medium.com/towards-data-science/how-to-train-a-decision-tree-classifier-in-sql-e29f37835f18

@viperthapa

star

Fri Apr 12 2024 03:32:15 GMT+0000 (Coordinated Universal Time) https://codemyui.com/bottom-to-top-angled-text-strikethrough-effect-in-pure-css/

@dfmedien #css

star

Fri Apr 12 2024 03:17:10 GMT+0000 (Coordinated Universal Time)

@CodeWithSachin #aggregation #mongodb #date #map #filter

star

Fri Apr 12 2024 03:15:55 GMT+0000 (Coordinated Universal Time) eyJkYXRhc2V0X3F1ZXJ5Ijp7InR5cGUiOiJuYXRpdmUiLCJuYXRpdmUiOnsiY29sbGVjdGlvbiI6ImJsb29kX2dsdWNvc2UiLCJxdWVyeSI6IltcclxuICAgIHtcclxuICAgICAgICBcIiRtYXRjaFwiOiB7XHJcbiAgICAgICAgICAgIFwicGFydGljaXBhbnRJZFwiOiBPYmplY3RJZChcIjY0ODFiNWYyNzA1MDA2MzUzMmE0NjAyMVwiKVxyXG4gICAgICAgIH1cclxuICAgIH0sXHJcbiAgICB7XHJcbiAgICAgICAgXCIkbWF0Y2hcIjoge1xyXG4gICAgICAgICAgICBcImRhdGVcIjogeyBcIiRndFwiOiBJU09EYXRlKFwiMjAyMy0wNi0xNVQwMDowMDowMC4wMDBaXCIpIH1cclxuICAgICAgICB9XHJcbiAgICB9XHJcbl1cclxuIiwidGVtcGxhdGUtdGFncyI6e319LCJkYXRhYmFzZSI6MTI5fSwiZGlzcGxheSI6InRhYmxlIiwidmlzdWFsaXphdGlvbl9zZXR0aW5ncyI6e319

@CodeWithSachin #aggregation #mongodb #date

star

Thu Apr 11 2024 23:27:31 GMT+0000 (Coordinated Universal Time) https://www.inoreader.com/folder/502803

@Xiaoxiao

star

Thu Apr 11 2024 20:20:22 GMT+0000 (Coordinated Universal Time)

@Sebhart #css #ui #button

star

Thu Apr 11 2024 16:58:01 GMT+0000 (Coordinated Universal Time)

@CarlosR

star

Thu Apr 11 2024 16:40:13 GMT+0000 (Coordinated Universal Time)

@HTPrince

star

Thu Apr 11 2024 16:27:47 GMT+0000 (Coordinated Universal Time)

@HTPrince

star

Thu Apr 11 2024 13:28:31 GMT+0000 (Coordinated Universal Time) https://scottspence.com/posts/passing-sveltekit-page-server-js-data-to-page-js

@obele #ts

star

Thu Apr 11 2024 13:27:50 GMT+0000 (Coordinated Universal Time) https://scottspence.com/posts/passing-sveltekit-page-server-js-data-to-page-js

@obele #ts

star

Thu Apr 11 2024 12:37:50 GMT+0000 (Coordinated Universal Time) .ih-b1 span{ transform: scale(100%); transition: .4s; } .ih-b1:hover span{ transform: scale(95%) } .ih-b1 a::after{ width: calc(100% + 0.1em); height: calc(100% + 0.1em); top: 50%; left: 50%; content: ''; position: absolute; background: none; z-index: 1; border: 2px solid #9E8053 ; border-radius: 0px; transition: .6s; transform: translatex(-50% ) translatey(-50% ); } .ih-b1 a::before{ width: calc(100% + 0.5em); height: calc(100% + 0.5em); top: 50%; left: 50%; content: ''; position: absolute; background: none; z-index: 2; border: 2px solid #9E8053 ; border-radius: 50px; transform: translatex(-50% ) translatey(-50% ); } .ih-b1 a:hover::after{ border-radius: 50px; }

@odesign

star

Thu Apr 11 2024 09:01:00 GMT+0000 (Coordinated Universal Time)

@Justus #apex

star

Thu Apr 11 2024 08:31:15 GMT+0000 (Coordinated Universal Time)

@HTPrince

star

Thu Apr 11 2024 08:02:17 GMT+0000 (Coordinated Universal Time)

@HTPrince

star

Thu Apr 11 2024 07:59:26 GMT+0000 (Coordinated Universal Time) https://www.kurazone.net/2020/12/cara-membuat-widget-random-posts.html

@Gelmi #html

star

Thu Apr 11 2024 06:41:15 GMT+0000 (Coordinated Universal Time)

@HTPrince

star

Thu Apr 11 2024 01:28:02 GMT+0000 (Coordinated Universal Time) https://urvsso.urv.cat/cas/idp/profile/SAML2/Callback?entityId

@Dasaju

star

Thu Apr 11 2024 01:01:22 GMT+0000 (Coordinated Universal Time)

@CarlosR

star

Wed Apr 10 2024 23:03:10 GMT+0000 (Coordinated Universal Time)

@rafal_rydz

star

Wed Apr 10 2024 22:41:07 GMT+0000 (Coordinated Universal Time)

@v0xel #c#

star

Wed Apr 10 2024 14:30:39 GMT+0000 (Coordinated Universal Time) https://learn.microsoft.com/fr-fr/dotnet/api/system.windows.forms.listview.-ctor?view

@demelevet

star

Wed Apr 10 2024 14:28:47 GMT+0000 (Coordinated Universal Time) https://learn.microsoft.com/fr-fr/dotnet/api/system.windows.forms.view?view

@demelevet #colors

star

Wed Apr 10 2024 14:26:49 GMT+0000 (Coordinated Universal Time) https://learn.microsoft.com/fr-fr/dotnet/api/system.windows.forms.listview.view?view

@demelevet

star

Wed Apr 10 2024 14:25:41 GMT+0000 (Coordinated Universal Time) https://learn.microsoft.com/fr-fr/dotnet/api/system.windows.forms.listview?view

@demelevet

star

Wed Apr 10 2024 13:22:40 GMT+0000 (Coordinated Universal Time)

@divyasoni23 #css

star

Wed Apr 10 2024 11:24:10 GMT+0000 (Coordinated Universal Time)

@Paloma #js

star

Wed Apr 10 2024 07:07:17 GMT+0000 (Coordinated Universal Time) https://chen-studio.co.il/wp-admin/admin.php?page

@chen #undefined

star

Wed Apr 10 2024 05:44:26 GMT+0000 (Coordinated Universal Time)

@naeemi7

star

Wed Apr 10 2024 05:35:15 GMT+0000 (Coordinated Universal Time) https://book.getfoundry.sh/forge/deploying

@katyno

star

Wed Apr 10 2024 05:35:11 GMT+0000 (Coordinated Universal Time) https://book.getfoundry.sh/forge/deploying

@katyno

star

Wed Apr 10 2024 05:34:43 GMT+0000 (Coordinated Universal Time) https://medium.com/@saadjamilakhtar/optimizing-django-performance-tips-and-techniques-for-blazing-fast-applications-ab6e5d5af799

@viperthapa #python

star

Wed Apr 10 2024 05:34:17 GMT+0000 (Coordinated Universal Time)

@divyasoni23 #jquery

star

Wed Apr 10 2024 03:45:09 GMT+0000 (Coordinated Universal Time)

@anmoltyagi

star

Wed Apr 10 2024 02:56:08 GMT+0000 (Coordinated Universal Time) https://www.w3schools.com/tags/tag_button.asp

@skatzy

star

Wed Apr 10 2024 02:55:46 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/how-to-show-images-on-click-using-html/#

@skatzy

star

Tue Apr 09 2024 23:29:21 GMT+0000 (Coordinated Universal Time)

@rafal_rydz

star

Tue Apr 09 2024 17:53:39 GMT+0000 (Coordinated Universal Time)

@wayneinvein

star

Tue Apr 09 2024 11:28:28 GMT+0000 (Coordinated Universal Time)

@zaki

star

Tue Apr 09 2024 10:27:03 GMT+0000 (Coordinated Universal Time)

@MrSpongeHead

star

Tue Apr 09 2024 10:07:45 GMT+0000 (Coordinated Universal Time)

@zaki

star

Tue Apr 09 2024 07:47:41 GMT+0000 (Coordinated Universal Time)

@divyasoni23 #jquery

star

Tue Apr 09 2024 07:34:17 GMT+0000 (Coordinated Universal Time) https://wordpress.stackexchange.com/questions/228591/to-perform-the-requested-action-wordpress-needs-to-access-your-web-server-pleas

@ioVista

star

Tue Apr 09 2024 07:24:08 GMT+0000 (Coordinated Universal Time)

@Saurabh_Lodhi #swift #inapppurchase

star

Tue Apr 09 2024 03:15:39 GMT+0000 (Coordinated Universal Time) https://www.google.com/maps/@42.0201354,-70.9238472,3a,19.7y,180.8h,93.99t/data

@docpainting

star

Tue Apr 09 2024 02:16:44 GMT+0000 (Coordinated Universal Time)

@wayneinvein

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension