What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-27 08:00:15
__dir__ in php
<?php include __DIR__ . "/worker_2.php"; Add solution -
Other 2022-03-27 08:00:11
flutter get image file from assets
import 'dart:async'; import 'dart:io'; import 'package:flutter/services.dart' show rootBundle; import 'package:path_provider/path_provider.dart'; Future<File> getImageFileFromAssets(String path) async { final byteData = await rootBundle.load('as... Add solution -
Javascript 2022-03-27 07:35:02
compress string javascript
function en(c){var x='charCodeAt',b,e={},f=c.split(""),d=[],a=f[0],g=256;for(b=1;b<f.length;b++)c=f[b],null!=e[a+c]?a+=c:(d.push(1<a.length?e[a]:a[x](0)),e[a+c]=g,g++,a=c);d.push(1<a.length?e[a]:a[x](0));for(b=0;b<d.length;b++)d[b]=S... Add solution -
Other 2022-03-27 07:25:32
adding redirect_uri in octorate testing
In the following example you will find a param that is called redirect_uri, that uri needs to be whitelisted from Octorate. So write [email protected] asking for add the page you can host on your website. This step in mandatory to go in producti... Add solution -
Other 2022-03-27 06:45:23
snakemake wildcard glob
IDS, = glob_wildcards("thedir/{id}.fastq") Add solution -
Other 2022-03-27 06:20:45
90-Percentile effective diameter
import snap Graph = snap.GenRndGnm(snap.TNGraph, 100, 1000) NTestNodes = 10 IsDir = False EffDiam = Graph.GetBfsEffDiam(NTestNodes, IsDir) print(EffDiam) UGraph = snap.GenRndGnm(snap.TUNGraph, 100, 1000) NTestNodes = 10 IsDir = False EffDiam = UGraph.Ge... Add solution -
C# 2022-03-25 05:45:02
Unlit shader get the direction of camera UNity
struct v2f { float4 pos : SV_POSITION; float3 normal : TEXCOORD0; //you don't need these semantics except for XBox360 float3 viewT : TEXCOORD1; //you don't need these semantics except for XBox360 }; v2f vert (appdata_base v) { ... Add solution