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> | |
#include <stdlib.h> | |
#include <netdb.h> | |
#include <netinet/in.h> | |
#include <string.h> | |
int main( int argc, char *argv[] ) { | |
int sockfd, newsockfd, portno, clilen; |
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
void reinvestment(double *a, double *b, /*int dh,*/ int re) { | |
double * arr1; | |
arr1 = (double *)malloc(sizeof(double) *Dimension); | |
double * arr2; | |
arr2 = (double *)malloc(sizeof(double) *Dimension); | |
for (int i = 0; i < Dimension; i++) { | |
arr1[i] = *(a + i); |
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
type UpdateMsg struct { | |
UpdateID int64 `json:"update_id"` | |
Message struct { | |
Text string `json:"text"` | |
From struct { | |
ChatID int64 `json:"id"` | |
FirstName string `json:"first_name"` | |
LastName string `json:"last_name"` | |
Username string `json:"username"` | |
} `json:"from"` |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) | |
func main() { | |
var n int |
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
func TestForRange(t *testing.T) { | |
m := map[string]string{ | |
"a": "1", | |
"b": "2", | |
} | |
go func() { | |
time.Sleep(1*time.Second) | |
m["b"] = "3" | |
fmt.Println("!") |
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
------------------------------------- | |
/var/log/nginx/access.log | |
------------------------------------- | |
178.128.234.200 - - [18/Dec/2019:02:26:01 +0000] "GET / HTTP/1.0" 502 157 "-" "masscan/1.0 (https://github.com/robertdavidgraham/masscan)" "-" | |
188.166.45.128 - - [18/Dec/2019:04:34:15 +0000] "GET / HTTP/1.0" 502 157 "-" "masscan/1.0 (https://github.com/robertdavidgraham/masscan)" "-" | |
142.93.187.70 - - [18/Dec/2019:04:52:00 +0000] "GET / HTTP/1.0" 502 157 "-" "masscan/1.0 (https://github.com/robertdavidgraham/masscan)" "-" | |
41.216.186.89 - - [18/Dec/2019:04:54:30 +0000] "\x03\x00\x00/*\xE0\x00\x00\x00\x00\x00Cookie: mstshash=Administr" 400 157 "-" "-" "-" | |
59.127.175.130 - admin [18/Dec/2019:05:03:45 +0000] "POST /editBlackAndWhiteList HTTP/1.1" 502 157 "-" "ApiTool" "-" | |
111.20.101.110 - - [18/Dec/2019:09:11:18 +0000] "GET / HTTP/1.1" 400 157 "-" "-" "-" |
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 a() { | |
return true | |
} | |
function b() { | |
return 0 | |
} | |
export default { | |
a, |
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
SELECT | |
merchants.vendor_id, | |
merchants.is_disconnected, | |
merchants.gmc_account_id, | |
merchants.created_at, | |
ads.google_ads_account_id, | |
account_issues.issue_id, | |
account_issues.severity, | |
account_issues.title, | |
account_issues.updated_at AS IssueUpdatedAt |
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
import * as THREE from "three"; | |
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader"; | |
import { Renderer } from "three"; | |
import { PerspectiveCamera } from "three/src/cameras/PerspectiveCamera"; | |
function resetCanvas(renderer: Renderer, camera: PerspectiveCamera) { | |
const size = document.body.clientWidth; | |
camera.aspect = window.innerWidth / window.innerHeight; | |
camera.updateProjectionMatrix(); | |
renderer.setSize(size, size); |
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
/* @jsx h */ | |
import { Fragment, h } from "preact"; | |
import { useEffect, useState } from "preact/compat"; | |
interface PluginInfo { | |
id: string; | |
name: string; | |
author: string; | |
description: string; | |
repo: string; |
OlderNewer