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 app.posmachine.machine; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.util.Enumeration; | |
import javax.comm.CommPortIdentifier; | |
import javax.comm.SerialPort; | |
public class PosPrinter { |
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 org.dchan.context; | |
import java.awt.BorderLayout; | |
import java.awt.EventQueue; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; |
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 sensible_time() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var data = sheet.getActiveRange().getValues(); | |
for (var i = 0; i < data.length; i++) { | |
for (var j = 0; j < data[i].length; j++) { | |
if (data[i][j]) { | |
var range = sheet.getRange(24+i, j+1); | |
time = data[i][j]; | |
var mins = ~~(time / 60); | |
var secs = time % 60; |
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
PRODUCT_HOME="$1" | |
IOS_CERTS="$2" | |
IP="$3" | |
PRODUCT_CONF="$4" | |
CONFIG_FILE="./openssl_custom.cnf" | |
TEMP_FOLDER="./temp" | |
PUSH_CERT="`echo $IOS_CERTS`pushcert.pfx" | |
PUSH_PASS="" | |
MDM_CERT="`echo $IOS_CERTS`PlainCert.pfx" | |
MDM_PASS="" |
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 writeUTFBytes(dataview, offset, string) { | |
for(let i = 0; i < string.length; i++) { | |
dataview.setUint8(offset + i, string.charCodeAt(i)); | |
} | |
} | |
function mergeBuffers(buffer, length) { | |
const result = new Float32Array(length); | |
let offset = 0; | |
for(let i = 0; i < buffer.length; 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
var audioContext = new (window.AudioContext || window.webkitAudioContext)(); | |
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; | |
// Using arrow functions from ES 6 | |
navigator.getUserMedia({ audio: true }, (stream) => { | |
// API works in a pipe mechanism | |
const gain = audioContext.createGain(); | |
const audioSource = audioContext.createMediaStreamSource(stream); | |
// we connect the gain pipe to the audio source pipe. | |
var gainNode = audioSource.connect(gain); |
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 audioContext = new (window.AudioContext || window.webkitAudioContext)(); | |
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; | |
// Using arrow functions from ES 6 | |
navigator.getUserMedia({ audio: true }, (stream) => { | |
// API works in a pipe mechanism | |
const gain = audioContext.createGain(); | |
const audioSource = audioContext.createMediaStreamSource(stream); | |
// we connect the gain pipe to the audio source pipe. | |
var gainNode = audioSource.connect(gain); |
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
"use strict" | |
var UniversalTruth = require("./UniversalTruth.js").UniversalTruth; | |
class EnergyMatter extends UniversalTruth{ | |
constructor(hypothesis){ | |
super(hypothesis) | |
this.energy = 100; //finite energy | |
this.matter = 0; //finite mass | |
this.inverseFlag = true; | |
} | |
execution() { |
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 man = { | |
"attributes": ["Sadness", "Anger", "Happiness", "Loneliness"] | |
}; | |
var walk = function(person){ | |
while(true){ | |
console.print("Walk of Life"); | |
} | |
} | |
walk(man); |
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 you = {}; | |
var others = []; | |
// If you can keep your head when all about you | |
// Are losing theirs and blaming it on you, | |
if (keepYourHead(you)){ | |
looseTheirHead(others); | |
blame(you); | |
} | |
// If you can trust yourself when all men doubt you, | |
// But make allowance for their doubting too; |
NewerOlder