Bad words written by others in gists: 1 found, 1 deleted
Secret gists = 66
Forked gists = deleting / ignored
Total repos worked = 125
Number of bad words written by scriptmaster = 0
Number of bad words others had written and seen in scriptmaster's group of gists: check-your-facts-in-detail
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
| #!/usr/bin/env python | |
| from pocketsphinx.pocketsphinx import * | |
| from sphinxbase.sphinxbase import * | |
| import os | |
| import pyaudio | |
| import wave | |
| import audioop | |
| from collections import deque | |
| import time |
For modern Angular projects (version 2+), you need to maintain a config.json file per every environment: dev, staging or production.
If you normally import or require this file in your environment.ts file(s) it would be merged as part of your bundle and may not be editable by admins who need to edit them in new clusters.
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
| sudo apt-get install python-software-properties -y | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y | |
| sudo apt-get update -y | |
| sudo apt-get install build-essential -y | |
| sudo apt-get install gcc-4.8 g++-4.8 -y | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 | |
| sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 | |
| sudo update-alternatives --config gcc | |
| sudo update-alternatives --config g++ | |
| export CC=gcc |
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
| { | |
| "_id": "_design/filters", | |
| "_rev": "10-82eb7646e9ac6bc442fbf9ec383dfc3e", | |
| "filters": { | |
| "type": "function (doc, req) { return doc.type === req.query.type; }", | |
| "prop": "function (doc, req) { return doc[req.query.prop] === req.query.value; }", | |
| "name": "function (doc, req) { return doc.name && typeof(req.query.name)!='undefined'? doc.name.toLowerCase() == req.query.name.toLowerCase(): false }" | |
| }, | |
| "language": "javascript", |
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
| var glob = require("glob"); | |
| module.exports = { | |
| watch: true, | |
| entry: { | |
| manage: glob.sync('./src/**/index.js') | |
| }, | |
| output: { | |
| filename: '[name].bundle.js', | |
| path: __dirname + '/www/js/' |
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
| <?php | |
| if( ! class_exists( 'WP_List_Table' ) ) { | |
| require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); | |
| } | |
| class MSheriff_WP_List_Table extends WP_List_Table { | |
| function get_columns() { |
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
| <input /> | |
| <div id="d1" tabindex="0">div</div> | |
| <input /> |
This is an example of how to scaffold API endpoints to list / get / create / update / delete Posts in a Keystone website.
It's a modification of the default project created with the yo keystone generator (see https://github.com/JedWatson/generator-keystone)
Gists don't let you specify full paths, so in the project structure the files would be:
routes-index.js --> /routes/index.js // modified to add the api endpoints
routes-api-posts.js --> /routes/api/posts.js // new file containing the Post API route controllers
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
| /** | |
| * Polyfill for the vw, vh, vm units | |
| * Requires StyleFix from -prefix-free http://leaverou.github.com/prefixfree/ | |
| * @author Lea Verou | |
| */ | |
| (function() { | |
| if(!window.StyleFix) { | |
| return; |
NewerOlder