Skip to content
View gist:7aac30619884c0aaacb9d73b8c04f729
SELECT structPayload.sessionId, SUM(failures) failures, SUM(restores) restores
FROM
(
SELECT
structPayload.sessionId,
CASE WHEN structPayload.event = 'failure' THEN 1
ELSE 0 END as failures,
CASE WHEN structPayload.event = 'restored' THEN 1
ELSE 0 END as restores
FROM [aaa.aaaaa_20160501]
View Homebridgeのサービス化手順@Raspberry Pi.md
View main.swift
import Vapor
let app = Application()
app.get("/") { request in
return "Hello, World"
}
app.start(port: 8080)
View codemod_example_1.js
//Example: https://astexplorer.net/#/E25QuXone4
//test_1.js
var var1 = 'var';
//we want to change it to
//const var1 = 'var';
//start template
export default function transformer(file, api) {
const j = api.jscodeshift;
View aceptar_inscripcion.cpp
#include <algorithm>
/*
Acepta la solicitud de inscripción que estará en "planillas de inscripción".
Para aceptar una solicitud se coloca la cedula de quien solicita, se elimina de planillas
se pasa a materias inscritas y se incrementa la cantidad de alumnos para cada seccion donde este el aceptado.
Listas usadas aqui:
Planillas
Materias_I
Secciones
Alumnos
View learnpython.py
import csv
def getPendingProfile(name):
myList = []
with open('Sheet1.csv', 'rb') as fo:
spamreader = csv.DictReader(fo)
for each in spamreader:
if each['Owner'] == name and each['Done?'] != 'x':
myList.append(each['Profile Page'])
return len(myList)
View prime-factrize.js
'use strict';
const xor64 = function (y) {
y = y >>> 0;
y = y ^ (y << 13);
y = y ^ (y >> 7);
y = y ^ (y << 17);
return y >>> 0;
};
View Package.swift
import PackageDescription
let package = Package(
name: "sample-swift-server",
dependencies: [
.Package(url: "https://github.com/qutheory/vapor.git", majorVersion: 0)
]
)
View Wear_MTBF_151228_05_15_2016_0833.log
This file has been truncated, but you can view the full file.
{"time":"2016-05-15T08:35:30+0900","log":"mainLoop::0::setAlarm_GotoApp"}
{"time":"2016-05-15T08:35:30+0900","log":"05_01_06_02_PIM::Start::setAlarm_GotoApp::0"}
{"time":"2016-05-15T08:35:54+0900","log":"05_01_06_02_PIM::Stop::Pass"}
{"time":"2016-05-15T08:36:24+0900","log":"mainLoop::0::remove_Alarm_GotoApp"}
{"time":"2016-05-15T08:36:24+0900","log":"05_01_06_04_PIM::Start::remove_Alarm_GotoApp::0"}
{"time":"2016-05-15T08:36:28+0900","log":"New alarm"}
{"time":"2016-05-15T08:36:30+0900","log":"New alarm >> One time"}
{"time":"2016-05-15T08:36:33+0900","log":"New alarm >> One time"}
{"time":"2016-05-15T08:36:36+0900","log":"New alarm >> Remove OK"}
{"time":"2016-05-15T08:36:52+0900","log":"05_01_06_04_PIM::Stop::Pass"}
View queu.java
public class Queue //stating class
{
int front , rear ,e, queSize , queArr[]; // initialized
Queue(int size) //constructor
{
this.queSize=size;
this.queArr=new int[queSize];
this.front=-1;
Something went wrong with that request. Please try again.