Skip to content

Instantly share code, notes, and snippets.

Electrocuter
Electrocution, has been handed down for centuries as an ancient execution technique. Although now many countries have abolished this cruel death penalty, there are always exceptions, such as well-developed country Lakes.
Lake is located next to the other side of the country Fei, that is, the so-called neighboring countries. Although they seems like friendly hoovies, you also understand that when turkeys and raccoons will fight upon encounterment, not to mention two countries with such huge ideological differences.
Development depends on science and technology, electrocution is no longer confined to a chair. Just hold it in my hand, lightly pressed about the trigger, then you can become a high-tech executioner, and that is one of the Lake's new technology: Mr. plasma
You might think that high-tech are usually low in prevalence, or even useless, and yes when Mr. plasma was initially released just as an easier implementation of electrocution. Even though the first batch of finished product use
Shock
There are two guardian elements in the long history of the other side: Light and Darkness. They have been protecting the day and night, and exit of fog of confusion, long before human stepped on the other side. Initially they helpped each other, cooperated with each other and maintained centuries of peace, until human migrated to the other side.
When first man went through the fog of confusion, he attracted the attention of two elements. They observed him closely as it was an unknown creature to them. Men quickly adapted to the lif of other side, including the unique magic power he discovered, which the two elements never expected him to be able to control.
But things began to deviate from their expectation, as the man created more human with soul, formed a community. two elements where shocked by this astonishing creature. At the same time, they also found a woman who had arrived the other side as well.The elements were simply too naive to not know the relationship between men and women ...
Human h
@IniZio
IniZio / class_local_global.cpp
Created September 9, 2016 01:11
class local and global variables
#include "iostream"
using namespace std;
int weird = 10;
// 'weird' gets constructor local
class lab
{
int weird;
<template>
<!-- HTML template part -->
<div id="app">
<h1>{{Title}}</h1>
<p>bla bla bla bla</p>
</app>
</template>
<script>
// JS part
@IniZio
IniZio / extensions.json
Created February 18, 2017 03:06
VS Code syncing
[
{
"name": "EditorConfig",
"publisher": "EditorConfig",
"version": "0.3.4",
"id": "EditorConfig.EditorConfig",
"__metadata": {
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588",
"publisherId": "1ed869e4-8588-4af4-a51e-9c1c86b034b9",
"publisherDisplayName": "EditorConfig"
@IniZio
IniZio / .babelrc
Created March 1, 2017 08:39
.babelrc
{
"sourceMaps": true,
"presets": ["es2015"],
"plugins": [
"transform-class-properties",
"transform-react-jsx"
]
}
@IniZio
IniZio / reactive-native Error message
Created March 5, 2017 03:38
reactive-native run-android
Exception in thread "main" java.lang.ExceptionInInitializerError
at javax.crypto.JceSecurityManager.<clinit>(java.base@9-Ubuntu/JceSecurityManager.java:65)
at javax.crypto.Cipher.getConfiguredPermission(java.base@9-Ubuntu/Cipher.java:2595)
at javax.crypto.Cipher.getMaxAllowedKeyLength(java.base@9-Ubuntu/Cipher.java:2619)
at sun.security.ssl.CipherSuite$BulkCipher.isUnlimited(java.base@9-Ubuntu/CipherSuite.java:602)
at sun.security.ssl.CipherSuite$BulkCipher.<init>(java.base@9-Ubuntu/CipherSuite.java:574)
at sun.security.ssl.CipherSuite$BulkCipher.<clinit>(java.base@9-Ubuntu/CipherSuite.java:460)
at sun.security.ssl.CipherSuite.<clinit>(java.base@9-Ubuntu/CipherSuite.java:1074)
at sun.security.ssl.SSLContextImpl.getApplicableSupportedCipherSuiteList(java.base@9-Ubuntu/SSLContextImpl.java:353)
at sun.security.ssl.SSLContextImpl.access$100(java.base@9-Ubuntu/SSLContextImpl.java:41)
@IniZio
IniZio / fuse.js
Created April 29, 2017 10:51
fuse 2 config
const {
FuseBox, Sparky,
BannerPlugin, ImageBase64Plugin, CSSResourcePlugin, CSSPlugin, TypeScriptHelpers, UglifyJSPlugin
} = require('fuse-box')
const { spawn } = require('child_process')
const isProduction = process.env.NODE_ENV === 'production'
const isElectron = process.env.TARGET === 'electron'
const fuse = FuseBox.init({
@IniZio
IniZio / connect.js
Created May 1, 2017 12:03 — forked from gaearon/connect.js
connect.js explained
// connect() is a function that injects Redux-related props into your component.
// You can inject data and callbacks that change that data by dispatching actions.
function connect(mapStateToProps, mapDispatchToProps) {
// It lets us inject component as the last step so people can use it as a decorator.
// Generally you don't need to worry about it.
return function (WrappedComponent) {
// It returns a component
return class extends React.Component {
render() {
return (
@IniZio
IniZio / skygear.js
Last active May 8, 2017 03:29
Write array of date objects to skygear
const event = Object.assign((this.isExistingEvent ? this.event : new eventRecord()), this.form, {
beginTime: str2Date(`${this.begin.date} ${this.begin.time}`),
endTime: str2Date(`${this.end.date} ${this.end.time}`),
rundown: this.rundown.map(slot => ({ time: str2Date(`${slot.date} ${slot.time}`), action: slot.action }))
})
WriteRecords(event)
.then(records => { console.log(records) })
.catch(error => this.$eventHub.$emit('open-snackbar', 'Failed writing Event!'))
const WriteRecords = records => {