This file contains hidden or 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 rects = []; | |
| function visualize(analyser) { | |
| analyser.fftSize = 2048; | |
| var bufferLength = analyser.fftSize; | |
| var dataArray = new Uint8Array(bufferLength); | |
| function run() { | |
| analyser.fftSize = 2048; | |
| var bufferLengthAlt = analyser.frequencyBinCount; |
This file contains hidden or 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
| name: deploy service tar | |
| on: | |
| push: | |
| branches: | |
| - 'deploy/*' | |
| jobs: | |
| docker: | |
| name: Build and archive service | |
| runs-on: ubuntu-latest |
This file contains hidden or 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
| extern crate libc; | |
| use libc::c_char; | |
| use std::ffi::CString; | |
| fn gimme_cstring_pointer() -> *const c_char { | |
| CString::new("hi").unwrap().as_ptr() | |
| } | |
| fn gimme_cstring() -> CString { | |
| CString::new("hi").unwrap() |
This file contains hidden or 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
| <!doctype html> | |
| <html class="no-js" lang=""> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="x-ua-compatible" content="ie=edge"> | |
| <title></title> | |
| <link rel="stylesheet" href="styles.css"> | |
| <script src="scripts.js"></script> |
This file contains hidden or 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
| docker inspect -f '{{ range $k, $v := .ContainerConfig.Labels -}} | |
| {{ $k }}={{ $v }} | |
| {{ end -}}' $cid |
This file contains hidden or 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
| FROM ubuntu:16.04 | |
| RUN PACKAGES="\ | |
| php-cli \ | |
| php-mysql \ | |
| php-intl \ | |
| php-xml \ | |
| php-curl \ | |
| php-dom \ | |
| " && \ |
This file contains hidden or 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
| #[derive(Debug)] | |
| struct Person<'a> { | |
| first_name: &'a str, | |
| last_name: &'a str, | |
| } | |
| fn foo1<'bar_lifetime>(bar: &'bar_lifetime str) -> &'bar_lifetime str { | |
| let a = "aa"; |
This file contains hidden or 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
| docker run -v /Users/mbreese/tmp:/tmp1 -w /tmp1 -i centos:7 /bin/bash -s <<EOF | |
| date > foo | |
| echo 'foo' >> foo | |
| cat /etc/redhat-release >> foo | |
| whoami >> foo | |
| EOF |
This file contains hidden or 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
| HAI 1.3 | |
| CAN HAS SOCKS? | |
| I HAS A local | |
| local R I IZ SOCKS'Z BIND YR "ANY" AN YR 12345 MKAY | |
| BTW get an IP address | |
| I HAS A addr ITZ I IZ SOCKS'Z RESOLV YR "google.com" MKAY | |
| BTW connect to a remote port |
This file contains hidden or 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
| javascript:(function(){var divs=["normalBG","normalFG","commentFG","constantFG","strFG","specFG","identFG","keyFG","incFG","typeFG","funFG","repFG","opFG"];for(var i=1;i<myscopes.length;i++){var randcolstring="";for(var j=0;j<3;j++){var randcol=(Math.floor(Math.random()*256)).toString(16);if(randcol.length==1){randcol="0"+randcol;}randcolstring=randcolstring+randcol;myscopes[i]=randcolstring;}$("#"+divs[i]).ColorPickerSetColor(myscopes[i]);$("#"+divs[i]+" div").css("background-color","#"+myscopes[i]);$("."+divs[i]).css("color","#"+myscopes[i]);}})(); |
NewerOlder