Based on Ana Tudor's styling of Range Sliders, I have used my own extension for jQueryUI to create really usable and pretty range sliders.
A Pen by Simon Goellner on CodePen.
| public class Compress { | |
| public static String compressedString(String str){ | |
| StringBuilder dest = new StringBuilder(); | |
| for(int i=0;i<str.length();i++){ | |
| char c = str.charAt(i); | |
| dest.append(c); | |
| int j = i; |
| /****************************************************************************** | |
| * Compilation: javac Stack.java | |
| * Execution: java Stack < input.txt | |
| * Dependencies: StdIn.java StdOut.java | |
| * | |
| * A generic stack, implemented using a singly-linked list. | |
| * Each stack element is of type Item. | |
| * | |
| * This version uses a static nested class Node (to save 8 bytes per | |
| * Node), whereas the version in the textbook uses a non-static nested |
| // C++ includes used for precompiling -*- C++ -*- | |
| // Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
| // | |
| // This file is part of the GNU ISO C++ Library. This library is free | |
| // software; you can redistribute it and/or modify it under the | |
| // terms of the GNU General Public License as published by the | |
| // Free Software Foundation; either version 3, or (at your option) | |
| // any later version. |
Based on Ana Tudor's styling of Range Sliders, I have used my own extension for jQueryUI to create really usable and pretty range sliders.
A Pen by Simon Goellner on CodePen.
| { | |
| "_id" : ObjectId("56cfcac32239305dc57ed859"), | |
| "profile_url" : "https://s3-ap-southeast-1.amazonaws.com/amaderdoctor/misc/person.png", | |
| "is_admin" : 1, | |
| "is_active" : true, | |
| "is_manager" : 0, | |
| "is_mpo" : 0, | |
| "is_fieldstaff" : 0, | |
| "is_rmp" : 0, | |
| "is_doctor" : 0, |
| // server.js | |
| var socketIO = require(‘socket.io’); | |
| var socketIOHelper = require(‘./app/helpers/socketio’); | |
| var PORT = process.env.PORT || 8088; | |
| var server = app.listen(config.port, function() { | |
| console.log(‘Listening on port ‘ + config.port); | |
| }); | |
| var io = socketIO(server); | |
| socketIOHelper.set(io); |
| var io=null; | |
| exports.set = function(socketio) { | |
| io=socketio; | |
| }; | |
| exports.get = function() { | |
| return io; | |
| }; |
| // /app/sockets/receivers.server.sockets.js | |
| var socketIO; | |
| exports.receivers = (io) => { | |
| socketIO = io; | |
| io.emit(‘generated notification’,’hello’); | |
| } | |
| // handle different type of notification. |
| <script src=”/socket.io/socket.io.js”></script> | |
| <script> | |
| $(document).ready(() => { | |
| var socket = io(); | |
| socket.on(‘generated notification’, notificationString => { | |
| // show the notification | |
| var notification | |
| = new Notification(‘Notification,{ | |
| title: ‘notificationString’, | |
| }); |
| let bitOne = 0b100111 | |
| let bitTwo = 0b101000 | |
| print(String(bitOne&bitTwo, radix: 2)) // Print the binary AND output 100000 | |