Skip to content

Instantly share code, notes, and snippets.

View cymen's full-sized avatar

Cymen Vig cymen

  • Vig Consulting, LLC
  • Remote
View GitHub Profile
@cymen
cymen / sierrakeygen.py
Created June 29, 2022 02:22 — forked from jkinred/sierrakeygen.py
Sierra Keygen
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# (c) B.Kerler 2019 under MIT license
# If you use my code, make sure you refer to my name
# If you want to use in a commercial product, ask me before integrating it
import serial
import sys
import argparse
from binascii import hexlify, unhexlify
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<link rel="stylesheet" href="https://unpkg.com/formiojs@latest/dist/formio.full.min.css">
<script src="https://unpkg.com/formiojs@latest/dist/formio.full.min.js"></script>
<script type="text/javascript">
window.onload = function() {
Formio.icons = 'fontawesome';
Formio.createForm(document.getElementById('formio'), 'https://api.form.io/udhkdmwfegsesuy/test');
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<link rel="stylesheet" href="https://unpkg.com/formiojs@latest/dist/formio.full.min.css">
<script src="https://unpkg.com/formiojs@latest/dist/formio.full.min.js"></script>
<script type="text/javascript">
window.onload = function() {
Formio.icons = 'fontawesome';
Formio.createForm(document.getElementById('formio'), 'https://api.form.io/udhkdmwfegsesuy/test');
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<link rel="stylesheet" href="https://unpkg.com/formiojs@latest/dist/formio.full.min.css">
<script src="https://unpkg.com/formiojs@latest/dist/formio.full.min.js"></script>
<script type="text/javascript">
window.onload = function() {
Formio.icons = 'fontawesome';
Formio.createForm(document.getElementById('formio'), 'https://udhkdmwfegsesuy.form.io/mi');
{
"display":"wizard",
"components":[
{
"id":"e7lqmy9",
"key":"page1",
"path":"page1",
"tags":"",
"tree":false,
"type":"panel",
{"display": "wizard", "components": [{"id": "e7lqmy9", "key": "page1", "path": "page1", "tags": "", "tree": false, "type": "panel", "input": false, "label": "Page 1", "logic": [], "theme": "default", "title": "Page 1", "hidden": false, "prefix": "", "suffix": "", "unique": false, "widget": null, "dbIndex": false, "overlay": {"top": "", "left": "", "page": "", "style": "", "width": "", "height": ""}, "tooltip": "", "disabled": false, "multiple": false, "nextPage": "", "redrawOn": "", "tabindex": "", "validate": {"custom": "", "required": false, "customPrivate": false, "strictDateValidation": false}, "autofocus": false, "encrypted": false, "hideLabel": false, "protected": false, "refreshOn": "", "tableView": false, "attributes": {}, "breadcrumb": "none", "components": [{"id": "eet25tl", "key": "applicantName", "case": "", "mask": false, "tags": "", "type": "textfield", "input": true, "label": "Applicant name", "logic": [], "hidden": false, "prefix": "", "suffix": "", "unique": false, "widget": {"type": "input"}

Keybase proof

I hereby claim:

  • I am cymen on github.
  • I am cymen (https://keybase.io/cymen) on keybase.
  • I have a public key ASC-D_uA50YoNz5ql2CKEfbr_9x6esQNPt0lqcyXnDs9fAo

To claim this, I am signing this object:

@cymen
cymen / gist:9aec78c717c352ea0dc2
Created November 23, 2015 00:04
webpack config with css, etc.
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var commonLoaders = [
{
test: /\.css$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!autoprefixer-loader?browsers=last 3 versions')
}, {
test: /\.less$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!autoprefixer-loader?browsers=last 3 versions!less-loader')
<%
# Build the helper file
# assumes config.assets.paths << Rails.root.join('tmp', 'teaspoon', 'assets') in development.rb
tmp_assets = Rails.root.join("tmp/teaspoon/assets")
spec_helper = File.join(tmp_assets, "spec_helper.js")
FileUtils.mkdir_p(File.dirname(spec_helper)) unless File.directory?(File.dirname(spec_helper))
specs = @suite.spec_assets(false).map{ |s| "#{s.gsub(/\.js.*$/, "")}" }
@cymen
cymen / example_spec.js.coffee
Created October 11, 2012 21:19 — forked from jfirebaugh/example_spec.js.coffee
Auto-restoring sinon fakes with Konacha
# require spec_helper
Test =
fn: -> 'result'
it 'auto-resets sinon fakes', ->
@stub(Test, 'fn')
Test.fn()
Test.fn.should.have.been.called