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
# Have you ever saw this error while trying to merge/embed subtitles | |
# into a video file on Windows? | |
# | |
# Fontconfig error: Cannot load default config file | |
# [Parsed_subtitles_0 @ 0000000002bf1ee0] No usable fontconfig configuration # file | |
# found, using fallback. | |
# Fontconfig error: Cannot load default config file | |
# | |
# This scripts merges subtitles (if present) and transcodes video files | |
# to H.264 mp4 video files with similar quality level. |
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
/** | |
* More info? | |
* a.dotreppe@aspyct.org | |
* http://aspyct.org | |
* @aspyct (twitter) | |
* | |
* Hope it helps :) | |
*/ | |
#include <stdio.h> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>BlackSheep Plagiarism: Welcome</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> | |
<!-- Bootstrap CSS --> |
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
//Install express server | |
const express = require('express'); | |
const path = require('path'); | |
const app = express(); | |
// Serve only the static files form the dist directory | |
app.use(express.static(`${__dirname}/front-end/dist/`)); | |
app.get('/*', function(req,res) { |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package org.secondstack.db; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; |
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
#!/usr/bin/env bash | |
#sh | |
export DB_URL='mongodb://rfid:rfid1234@ds223756.mlab.com:23756/crappy-logger' | |
node server.js |
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
import coursesData from './courses' | |
function CourseService() { | |
let courses = coursesData; | |
return { | |
addCourse: (newCourse) => { | |
courses.push(newCourse); | |
}, | |
deleteCourse: (id) => { | |
courses = courses.filter(course => course.id !== id) | |
}, |
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
import React from 'react'; | |
import WidgetListContainer from './WidgetListContainer' | |
import {applyMiddleware, createStore} from 'redux' | |
import logger from 'redux-logger' | |
import {Provider} from 'react-redux' | |
import {widgetReducer} from "../reducers/widgetReducer" | |
let store = createStore(widgetReducer); |
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
//Note: some may have selectedWidget, some may not , ignore it if it is not yours. | |
// while selecting a module, set topic and selectedWidget to null so that you don't retain the existing selection | |
// while selecting a lesson, set widget and selectedWidget to null | |
// This is just a sample code | |
this.state={ | |
// ... | |
selectedModule: course.modules[0], | |
selectedLesson: course.modules[0].lessons[0], |
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
1. React dev tools | |
2. anchor tag issues |
OlderNewer